CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] how to show the variable I defined myself

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2012, 06: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: 13
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, 08:21
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
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.
akidess is offline   Reply With Quote

Old   November 10, 2012, 20:45
Default
  #3
New Member
 
Wang Han
Join Date: May 2012
Location: Shanghai China
Posts: 21
Rep Power: 13
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, 18:31
Default
  #4
New Member
 
Wang Han
Join Date: May 2012
Location: Shanghai China
Posts: 21
Rep Power: 13
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


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 Off
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 14 February 12, 2017 13:44
UDF link fortran source yorelchr Fluent UDF and Scheme Programming 0 February 7, 2013 03:44
using METIS functions in fortran dokeun Main CFD Forum 7 January 29, 2013 04:06
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 04:46.