|
[Sponsors] |
January 27, 2010, 14:29 |
pressure time history of some nodes
|
#1 |
New Member
ibuki kusano
Join Date: Mar 2009
Location: Spain
Posts: 10
Rep Power: 17 |
Hello. I'm running a 2D transient model, and I would like to know if there is a way to write an output of pressure time history of certain nodes.
Thank you. |
|
January 27, 2010, 16:59 |
|
#2 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 19 |
Yes, it is possible. Define a surface that pass through your nodes and then write a Scheme or a UDF function that will save the data at every iteration or time step.
Do |
|
January 28, 2010, 06:35 |
UDFs
|
#3 |
New Member
ibuki kusano
Join Date: Mar 2009
Location: Spain
Posts: 10
Rep Power: 17 |
Thank you for the reply. I have never used UDFs, and I've been reading the manual about UDF and Scheme. I know that I have to write UDF using C code, but I don't have much idea of what exactly I have to do. Would you give me a little example of this case to print pressure of some nodes along a surface every X time steps? Thank you very much.
|
|
January 28, 2010, 17:14 |
|
#4 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 19 |
This will save the pressure coefficient from a zone named "zone_name" at each time step in files named data-0000.txt data-0001.txt ....
(cx-macro-define '((save-data . "file/write-profile\ndata-%t.txt\nzone_name\n\npressure-coefficient\nq\n") )) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PostChannel | maka | OpenFOAM Post-Processing | 5 | July 22, 2009 10:15 |
air bubble is disappear increasing time using vof | xujjun | CFX | 9 | June 9, 2009 08:59 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |
Gas pressure question | Dan Moskal | Main CFD Forum | 0 | October 24, 2002 23:02 |
pressure gradient term in low speed flow | Atit Koonsrisuk | Main CFD Forum | 2 | January 10, 2002 11:52 |