Table defined BC
Is it possible to define a patch using its caracteristic data ?
For example, on an outlet we could know the p/U relation:
p=0.1bar ---> U=0.1l/s
p=0.5bar ---> U=0.4l/s
p=1.0bar ---> U=0.7l/s
It would be usefull in complex system. You can avoid simulating external part already characterized.
Can this be implemented ?
Sorry to make questions before deep searching.
I think the best thing is to use groovyBC in following way.
Let's say we approximate the p/U relation with:
U=p/10+5 (note: just a random linear relation)
and the outlet flow is just in the x direction,
In the variables-string a ; is missing
The valueExpression might be more elegant if you write it like "Ux*normal()". That way it works no matter how the boundary is oriented (not 100% sure. You might night a - there)
Concerning your original posting: expressions in swak4Foam can have lookup-tables where you specify a function by value pairs and values are interpolated between these. For an exmple on the usage see the wobbler-case in the examples
it's hard, at least of me, to say.. but is your simulation ss or transient? i kinda of a need a very specific reason b4 implementing things.. so i can't tell..
as for stability.,, i guess you cannot fix pressure and flowrate, U, at the same patch and model.... so i guess you got pick one var to fix..
Many thanks ! Sure, I know fixing an outlet U is problematic. I'll make some simple bc tests and report here.
|All times are GMT -4. The time now is 20:56.|