Boundary condition based on cellZone values
Hello,
I'd like to specify an inlet/outlet boundary condition for velocity using something like the flowRateInletVelocity condition where the massFlowRate is specified based on the mass flow rate measured at a cellZone elsewhere in the domain. I tried to achieve this using swak4Foam: Code:
outlet Can swak4Foam access cellZone data for specifying boundary conditions? If that is not the case, would a coded BC help? Or is it possible to have an internal patch in place of the cellZone that is transparent to the flow and yet can measure the mass flow rate through it so that I can use that patch in the swak expression? Thank you for any hints! |
I now realize that a cellZone does not have access to rhoPhi as that is a face-based value. I switched to a faceZone to resolve this problem:
Code:
variables ( "mass_in{faceZone'f0}=sum(rhoPhi);" ); Code:
initSwak Thank you |
All times are GMT -4. The time now is 04:57. |