CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   how to show the variable I defined myself (http://www.cfd-online.com/Forums/openfoam-paraview/109146-how-show-variable-i-defined-myself.html)

whyingwang November 10, 2012 07:12

how to show the variable I defined myself
 
Hello, OpenFOAM users:
recently,I meet a problem.I can not show the variable I defined.
I use icoFOAM to calculate a channel flow.When it finished down I use an application which it's write by myself to calculate EDR a variable I define myself.After it down,I can find there are files named EDR in each time directory.
But I run paraFoam,I can't choose EDR ,I can just only choose p and U.
who can tell me why?

akidess November 10, 2012 09:21

Did you define an IOObject with the AUTO_WRITE option?

whyingwang November 10, 2012 21:45

Quote:

Originally Posted by akidess (Post 391388)
Did you define an IOObject with the AUTO_WRITE option?

Thanks for your help,
But I think maybe I do not know exactly about what you means.
I accept your suggestion in this way, as below shows:

volScalarField edr
(
IOobject
(
"EDR",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
laminarTransport.nu() * (fvc::grad(U)+T(fvc::grad(U))) && (fvc::grad(U))
);

after wmake again,I write to re calculate the EDR.But after paraFoam I can still can't find the choose to show EDR in paraview.:confused:

whyingwang November 11, 2012 19:31

Quote:

Originally Posted by akidess (Post 391388)
Did you define an IOObject with the AUTO_WRITE option?

Hello akidess,
Yes,you are right.I found that. In paraview , at Volume Fields,I do not choose EDR.Now It's OK.


All times are GMT -4. The time now is 22:37.