Dependency of diffusivity from temperature
Hi,
I try to modify laplacianFoam solver and make depency of DT from temperature. Something like this: if T>0 then DT=0.56 else DT=2.21. Taking a temperature from previous time layer is ok. But i don't understand how to make OpenFoam fill each value of dimensionedScalar from respective value of calculated T. |
some thing like this:
Code:
forAll (T, celli) you should change diffusivity definition from dimensionedScalar into VolScalarField |
All times are GMT -4. The time now is 06:55. |