I want to do the above simulation using fick's law with the use of finite differences. My problem is at the set up of the whole problem.
I will list some values and declarations from the paper and how i tried to implement them.(the cell is divided into 6 compartments)
Physical properties:
- The initial volume of the cell ,V0.
- The initial volume of osmotically active water within the cell,Viw0.
Here, i did :
V0 = ... # just a variable
V = sc.zeros(5)
V[0] = ... # this goes for Viw0
Boundary conditions:
- Initial concentration of solute within the cell , Ci0
- Concentration in the bulk medium C7 (this goes out of the cell)
Here, I did:
C = sc.zeros(5)
C[0] = ... #this goes for Ci0
C7 = ...
Fick's first law:
F = -D * dc/dx
# F the rate of transfer per unit of a section
# c the concentration of diffusing substance
# x the space coordinate measured normal to the section
Here, I don't know what the argument of the function must be :
def F(what to put here?):
dc = 0.1 # I don't know what to do with the dc!
return -(D*dc)/dx
Also, how to implement the finite difference method? (I have a class in which i implement the method).
Below, links to the paper: