CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to modify psi value from the solver level (based on reactingFoam)? (http://www.cfd-online.com/Forums/openfoam-programming-development/106194-how-modify-psi-value-solver-level-based-reactingfoam.html)

xinyu August 21, 2012 14:05

How to modify psi value from the solver level (based on reactingFoam)?
 
Hello everyone,

I am writing a solver based on reactingFoam (1.7.1). The psi value is calculated from a user-routine, and I want to assign the value to psi and use that psi to update other thermo properties. However, in the basicThermo class, the psi is defined as const... I tried to add non-const access to psi, and there is no compilation error, but there is runtime error related to psi.oldtime(). Is there any way that I could update the psi value as well as alpha and mu from a solver level?

Thanks a lot,

Xinyu


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