CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Please help see this errors (https://www.cfd-online.com/Forums/openfoam-solving/60391-please-help-see-errors.html)

liugx212 December 9, 2005 11:15

Dear All, I want to change
 
Dear All,

I want to change the "nu" for each cell and I add the code to icoFoam.C, but a error is here. Could you help me for this?

93: volScalarField& nuInternal = nu.internalField();

icoFoam.C:93: error: 'struct Foam::dimensionedScalar' has no member named 'internalField'

Thanks deeply,
Guoxiang

niklas December 9, 2005 12:24

Its' because nu is defined as
 
Its' because nu is defined as a constant, replace the creation of nu with a volScalarField.

... and you should really try to come up with more approapriate headlines.

N

liugx212 December 9, 2005 12:34

Dear Niklas Nordin: Thanks
 
Dear Niklas Nordin:

Thanks for your help.

Since I am a new learner, I do not understand well you meaning ("Its' because nu is defined as a constant, replace the creation of nu with a volScalarField."). Could you please give more explanations?

Thanks deeply,
Guoxiang


All times are GMT -4. The time now is 20:57.