how can define a depth-dependent property?
Hi everybody,
If I want to define the viscosity or gravity acceleration or anything else as a function of depth, what should I do? in example, g=ay^2+b, where y is the height from bottom surface. I searched the internet but I couldn't find anything. anybody knows how can I do it? can I use pos().y, which is used in groovyBC? thanks a lot Mostafa Mahmoudi |
I don't know if it helps you, but you can access the coordinates as (e.g. z-coordinate)
Code:
const volScalarField& Cz = mesh.C().component(vector::Z); Code:
g = a*sqr(Cs)+b I have never worked with groovyBC so I can't help you with that. Cheers, L |
Quote:
Thank you for your reply. I think your post is what I want. I will test it. Best Mostafa |
All times are GMT -4. The time now is 13:58. |