CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Pressure field values from the previous iteration? (https://www.cfd-online.com/Forums/openfoam-programming-development/136843-pressure-field-values-previous-iteration.html)

petr.f. June 5, 2014 07:46

Pressure field values from the previous iteration?
 
Dear Foamers,

I'd like to damp oscillations in pressure produced as a side-effect of a custom boundary condition. Hence I need values of pressure from the actual as well as the previous iteration. Is there a way how to get them from the body of the boundary condition?

Thanks a lot for response in advance.

petr.f. June 6, 2014 10:30

OK, this problem is solved - by adding private member to this boundary condition class for storing the pressure value (as I'm using average pressure value end hence not need the whole field)...


All times are GMT -4. The time now is 05:49.