CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFoam ploting Field (https://www.cfd-online.com/Forums/openfoam/105437-openfoam-ploting-field.html)

tek_cfd July 31, 2012 03:38

OpenFoam ploting Field
 
Dear Foamer,
I would like to create a field Ser, with
Ser=fvm::ddt(T)+(U & fvc::grad(T))
and using paraview to show Ser on each cell of my domain. I put this way but still have pb in compiling:

volScalarField Ser
(
IOobject
(
"Ser",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
fvm::ddt(T)+(U & fvc::grad(T))

);

//Ser.write()
How can I proceed ?
your insight will be appreciated.

romant July 31, 2012 03:52

Quote:

Originally Posted by tek_cfd (Post 374491)
Dear Foamer,
I would like to create a field Ser, with
Ser=fvm::ddt(T)+(U & fvc::grad(T))
and using paraview to show Ser on each cell of my domain. I put this way but still have pb in compiling:

volScalarField Ser
(
IOobject
(
"Ser",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
fvm::ddt(T)+(U & fvc::grad(T))

);

//Ser.write()
How can I proceed ?
your insight will be appreciated.

What is the problem? What is mentioned during the compilation process?

tek_cfd August 1, 2012 16:15

Thanks you romant. I finally solved the issue using fvc instead of fvm on Ser expression.


All times are GMT -4. The time now is 14:47.