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/)
-   -   can rho2 be varied in interfoam solver (http://www.cfd-online.com/Forums/openfoam-programming-development/105177-can-rho2-varied-interfoam-solver.html)

shash July 24, 2012 12:53

can rho2 be varied in interfoam solver
 
hi all,
I have been working on a problem which requires the rho of one of the fluids in interfoam solver to vary with a scalarfield "s" so that means rho is now itself a volscalarfield thou it has been defined as a dimensionedscalar in interfoam, when i create rho2 as volscalarfield i am getting lots of errors probably because some of the functions which take dimensionedscalar as argument are receiving volscalarfield.

can someone please explain me what should i do to implement varying rho in interfoam.


All times are GMT -4. The time now is 10:23.