Replies: 1 comment
-
The code as written doesn't work, obviously. Question 1: It's in the attached code and it works fine. Might have something to do with your older version of FiPy Question 2: I just think you need to add
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm able to apply a piece of old Stackoverflow code and solve for the transient solutions of a 1D Fokker-Planck equation, where the coefficients of advection and diffusion vary with space. The problem describes an animal's movement (its probabilistic location) as it moves across a landscape. The working code (based on FiPy 3.1) is as follows:
Question 1:
If I wish to manually change all
omega.value < 0.05
to 0.05, how would I do that?omega.setValue(0.05, where=omega.value < 0.05
gives an TypeError.Quesion 2:
I noticed that the above code does not specify the variable to solve in the equation. In fact, running the line
gives an ExplicitVariableError. This is problematic because I'm not sure how one would model two moving, potentially interacting, individuals,
phi1
andphi2
, at once. Any advice would be much appreciated!Beta Was this translation helpful? Give feedback.
All reactions