Skip to content

Bad convergence of 1D Greens functions #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TheJoris opened this issue Jul 25, 2011 · 3 comments
Open

Bad convergence of 1D Greens functions #23

TheJoris opened this issue Jul 25, 2011 · 3 comments

Comments

@TheJoris
Copy link

Issue partly solved, see below.

1D Greens Functions converge badly when drawing a new center of mass (drawR) after a SINGLE_REACTION or a IV_REACTION with a large domain size L. Where L is large as in L^2/(D t) >> 1. Both these events can return very small dt's (for a small IV domain or large dissociation constant).

Because for D t << L^2, the particle "doesn't see" the absorbing boundary and we can use the free 1D greens function. So, just as with the 3D functions, we could use different greens functions for particles far away from the boundary(s).

@nilsbecker
Copy link
Member

On 07/25/2011 10:28 AM, TheJoris wrote:

1D Greens Functions converge badly when drawing a new center of mass (drawR) after a SINGLE_REACTION or a IV_REACTION with a large domain size L. Where L is large as in L^2/(D t) << 1. Both these events can return very small dt's (for a small IV domain or large dissociation constant).

Because for D t << L^2, the particle 'doesnt see' the absorbing boundary and we can use the free 1D greens function. So the same solution as with the 3D function could be used.

sounds good!
N.

@thomie
Copy link
Collaborator

thomie commented Jul 25, 2011

Yes, see pdf document with all the green's functions.

Op 25 jul. 2011 01:28 schreef "TheJoris" <
[email protected]>
het volgende:
1D Greens Functions converge badly when drawing a new center of mass (drawR)
after a SINGLE_REACTION or a IV_REACTION with a large domain size L. Where L
is large as in L^2/(D t) << 1. Both these events can return very small dt's
(for a small IV domain or large dissociation constant).

Because for D t << L^2, the particle 'doesnt see' the absorbing boundary and
we can use the free 1D greens function. So the same solution as with the 3D
function could be used.

Reply to this email directly or view it on GitHub:
#23

@TheJoris
Copy link
Author

Issue Solved: The 1DAbsAbs::drawR function now checks if H*sqrt(2Dt) < (L - r0 - vt); or is it likely for the particle positioned at r0 with a drift v, to reach the right boundary at L in a time t. We use a cutoff H.

If the particle is many (now set at H = 6) standard deviations away from both of the boundaries, it draws a new position from the free greens function.

Things to do is:

  • Test this approximation.
  • Solve convergence issues is 1DRadAbs::drawTime/flux_tot/prob_r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants