|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Jérémy Bulle
Join Date: Nov 2009
Posts: 93
Rep Power: 5 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Member
Mohammad.R.Shetab
Join Date: Jul 2010
Posts: 46
Rep Power: 4 ![]() |
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 |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 121 | March 7, 2013 17:21 |
| Phase Field modeling in OpenFOAM | adona058 | OpenFOAM Running, Solving & CFD | 8 | January 23, 2013 10:56 |
| Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |
| How to get value scale of field in ParaView | kar | OpenFOAM Paraview & paraFoam | 0 | February 26, 2008 13:15 |
| External flow field. | Moon | FLUENT | 3 | March 5, 2003 10:32 |