time-dependent inletOutlet with groovyBC?
Dear Foamers,
given a measured time series of patch-normal velocity Un, is it possible with groovyBC and timelines or lookuptables to set time-dependent inletOutlet boundary conditions on that patch? I want to set up the following scenario:
Marcus |
Quote:
Code:
valueExpression "-normal()*Un"; |
Quote:
Follow-up question: How do I have to set the corresponding pressure boundary condition on that patch? I would expect that a similar case distinction depending on the sign of Un needs to be implemented for p. |
Quote:
|
Sorry, the description of my scenario given above was not precise. Let me try to clarify. Basically I am planning to mimick "inletOutlet", the patch field type derived from mixed (table 5.4 in OF 2.2.2 user guide) using the patch-normal velocity component Un:
fractionExpression "Un<0 ? 1 : 0". Whether or not this pressure boundary condition will work well in this case, this will be the next question... |
Quote:
|
Thank you, Bernhard, the second one worked out fine.
As a follow-up question, I should now compare this with a conditional totalPressure boundary condition in case of outflow as follows:
|
Quote:
p shouldn't be a big problem either. The catch is that you've got to specify the total pressure as an expression. You can't use the readymade BC |
All times are GMT -4. The time now is 16:23. |