CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   ScalarTransportFoam and turbulent diffusion coefficient (http://www.cfd-online.com/Forums/openfoam-solving/59917-scalartransportfoam-turbulent-diffusion-coefficient.html)

rybakov2 November 30, 2006 12:56

I try to modify the scalarTran
 
I try to modify the scalarTransportFoam for k-epsilon model and want to change diffusion coefficient to D=C_mu*k*k/epsilon.
I write a new solver with strings

solve
(
fvm::ddt(T)
+ fvm::div(phi, T)
- fvm::laplacian(DT+0.09*k*k/eipsilon, T)
);
and adds in the creatsField.H the scalar variable k and epsilon from simpleFoam calculation. It is compiled, but during execute I recieve the message:
fileName::stripInvalid() called for string
What I must do to solve this problem?

rybakov2 December 1, 2006 08:57

I am sorry. I have found the p
 
I am sorry. I have found the problem. It was data file, not the code. It works good now.

jeicek June 24, 2014 14:21

Quote:

Originally Posted by rybakov2 (Post 186847)
I try to modify the scalarTransportFoam for k-epsilon model and want to change diffusion coefficient to D=C_mu*k*k/epsilon.
I write a new solver with strings

solve
(
fvm::ddt(T)
+ fvm::div(phi, T)
- fvm::laplacian(DT+0.09*k*k/eipsilon, T)
);
and adds in the creatsField.H the scalar variable k and epsilon from simpleFoam calculation. It is compiled, but during execute I recieve the message:
fileName::stripInvalid() called for string
What I must do to solve this problem?

Hi,

I need also modify scalartransportFoam to incorporate the turbulence but after modification the new solver works very heavy and it takes lot of time do you know what could be the reason?,
2. I can not use modified scalartransport for k-omega turbulence model???,, in other words it is independent of turbulence mocel or?


All times are GMT -4. The time now is 18:55.