CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   "calculated " boundary condition (https://www.cfd-online.com/Forums/openfoam/72194-calculated-boundary-condition.html)

suniljain January 28, 2010 05:13

"calculated " boundary condition
 
hi,
how to apply calculated type of primitive patch field. i have a relation between p and v at that boundary (patch) , say p=constant * v. so how should i write p and v boundary condition for that patch.
is there anybody who can help me..............

herbert January 28, 2010 09:28

Hi,

I think one way to solve your problem was the following. (But its only a suggest and surely not the only one)

1. set boundaryType for U to zeroGradient
2. set boundaryType for p to fixedValue
3. solve Eqns
4. set value on boundary of p to C*U
5. repeat steps 3-4 and hope for convergence ;)

Does anyone know about a more elegant solution?

Regards
Stefan

gschaider January 28, 2010 13:22

Quote:

Originally Posted by suniljain (Post 244035)
hi,
how to apply calculated type of primitive patch field. i have a relation between p and v at that boundary (patch) , say p=constant * v. so how should i write p and v boundary condition for that patch.
is there anybody who can help me.

I may be biased ("If you've got a hammer, every problem looks to you like a nail", and if you wrote the hammer it is worse), but http://openfoamwiki.net/index.php/Contrib_groovyBC may help you (at least for prototyping such a kind of boundary condition)

Bernhard


All times are GMT -4. The time now is 16:09.