CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   calculating pressure with groovyBC (https://www.cfd-online.com/Forums/main/142534-calculating-pressure-groovybc.html)

knoedl1 October 3, 2014 12:57

calculating pressure with groovyBC
 
Hi,

I have a mesh with an outlet and an inlet. Iam calculating an compressible case and its very
important that both massflows of the inlet and outlet are equal, so i have a target massflow at the inlet.

I have for U:
inlet with a flowRateInletVelocity;
outlet with zeroGRadient;

for p:

inlet zeroGradient;

outlet
type groovyBC;
valueExpression "SOME CALCULATION";
value 100000;

So i want that p for the outlet is calculated by groovyBC, but when i start the calculation after 3 timesteps i get a bounding problem

bounding (Cp|(Cv*psi)), min: -8.08392e+08 max: 1.352e+07 average: -316717

So what can i do that both massflow a going to be equal after some iterations???


All times are GMT -4. The time now is 12:53.