|July 20, 2011, 10:07||
Join Date: Dec 2010
Posts: 8Rep Power: 7
I try to implement a new transport model 'myPowerLaw'. The viscosity should be dependent on the Temperature. I created a myPowerLaw.C and a myPowerLaw.H. I get the Temperaturefield via
const volScalarField& T; (in .H)
I initiated nu_ as
volScalarField nu_; (in .H)
and as IOobject
Furtheron I defined the function calc(Nu) as follows:
(just a simple function for testing...)
It is compiling and running fine, but the problem is that I get only one single value for nu at every position of the mesh!!! And it is also not changing with time... So I need to tell the code to recalculate the viscosity in every timestep and to calculate the viscosity for each cell dependent on the Temperature that is in the certain cell.
I'm still new in OpenFOAM and I have no Idea how to do that! I would be very thankfull for any help!!!