Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
How to define a variable for a range of values?
Posted 18 gen 2020, 01:00 GMT-5 Fluid & Heat, Computational Fluid Dynamics (CFD), Porous Media Flow Version 5.4 1 Reply
Please login with a confirmed email address before reporting spam
Hi,
I am trying to simulate a spontaneous fluid uptake process in a rock where capillary pressure is the driving force. I am using Coefficient Form PDE physics. In such a case, only damping coefficient and source term are non-zero. The source term (f) is -d(d(Pc,x),x). Here, I would like to define Pc as a variable under Global Definitions wherein for its expression I want to write 2*sigma/r.
However, Pc is different for different values of r. My question is how can I incorporate this in COMSOL? How do I define Pc as something that varies for a range of 'r' values. At different Pc values, subsequent variables are also calculated such as Se, krw, etc.
I would appreciate your help in setting up this problem in COMSOL.
Thanks