Howto create runtime variable for internal field
Hello everyone. Assume that I have a variable like this:
http://i.imgur.com/of7Dlmr.gif And I want to change DT respect to T after every iteration and it should be like this, I need to get the value of that cell and evaluate DT equation, use it for iterations and write it to time folder and update it at next iteration step. So I define it like this: Code:
dimensionedScalar a (laminarTransport.lookup("a")); The way I am trying to calculate DT is not appropriate way? If not, call you tell me how can I define this kind of variable, please? I hope you can help me to find my mistake! Regards |
Hi,
You have to initialise your volScalarField with IOobject as follows: Code:
volScalarField DT Cheers, Ben |
All times are GMT -4. The time now is 19:16. |