CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

how to show the variable I defined myself

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 10, 2012, 07:12
Question how to show the variable I defined myself
  #1
New Member
 
Wang Han
Join Date: May 2012
Location: Shanghai China
Posts: 21
Rep Power: 5
whyingwang is on a distinguished road
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?
whyingwang is offline   Reply With Quote

Old   November 10, 2012, 09:21
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Did you define an IOObject with the AUTO_WRITE option?
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   November 10, 2012, 21:45
Default
  #3
New Member
 
Wang Han
Join Date: May 2012
Location: Shanghai China
Posts: 21
Rep Power: 5
whyingwang is on a distinguished road
Quote:
Originally Posted by akidess View Post
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.
whyingwang is offline   Reply With Quote

Old   November 11, 2012, 19:31
Default
  #4
New Member
 
Wang Han
Join Date: May 2012
Location: Shanghai China
Posts: 21
Rep Power: 5
whyingwang is on a distinguished road
Quote:
Originally Posted by akidess View Post
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.
whyingwang is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] How can I define different zones in ICEM? llrr ANSYS Meshing & Geometry 13 August 4, 2014 20:04
Variable name for heat flux peterle CFX 4 February 13, 2014 03:21
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
Problem in installation of OpenFOAM sachin OpenFOAM Installation 7 January 22, 2008 02:40
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


All times are GMT -4. The time now is 08:49.