CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   problem compiling spalart allmaras model (https://www.cfd-online.com/Forums/openfoam/99502-problem-compiling-spalart-allmaras-model.html)

bababanamzdaalma April 4, 2012 20:13

problem compiling spalart allmaras model
 
hi everyone;

I have a problem compiling the my own spartal allmaras turbulence model. I want to set the private member function fv3 to 1 but I don`t have the code to do that. I don`t know how to change that part of the current code which is;

tmp<volScalarField> mySpalartAllmaras::fv3
(
const volScalarField& chi,
const volScalarField& fv1
) const
{
const volScalarField chiByCv2((1/Cv2_)*chi);

return
(scalar(1) + chi*fv1)
*(1/Cv2_)
*(3*(scalar(1) + chiByCv2) + sqr(chiByCv2))
/pow3(scalar(1) + chiByCv2);
}

can anyone help me about this issue. Thanks for your concern


All times are GMT -4. The time now is 21:35.