CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Ptot as default field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2010, 10:16
Default Ptot as default field
  #1
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 17
Gearb0x is on a distinguished road
Hello,

The utility ptot calculates total pressure but it is a post process utility

What I would like is to set ptot as default field like U, p, espilon, ...

How can I do that?

Also, I use openfoam on a network. I cannot access the code freely. How can I made changes to a file and that openfoam takes my file instead of the standard file?

Thanks for your help
Gearb0x is offline   Reply With Quote

Old   January 26, 2011, 22:36
Default answer!!
  #2
Member
 
Mohammad.R.Shetab
Join Date: Jul 2010
Posts: 49
Rep Power: 16
mrshb4 is on a distinguished road
Hi

It is easy. just you should add some lines to the code. If you can't access the codes you should make you own solver and compile it into openFoam. Then in your own code you should define field Ptot as U or P. just take a look at icoFoam source code(applications/sovers/incompressible/icoFoam) and see how fields U and P are defined in file creatFields.H.

Mohammadreza
mrshb4 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
Phase Field modeling in OpenFOAM adona058 OpenFOAM Running, Solving & CFD 35 November 16, 2021 01:16
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
[OpenFOAM] How to get value scale of field in ParaView kar ParaView 0 February 26, 2008 14:15
External flow field. Moon FLUENT 3 March 5, 2003 11:32


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