CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   pressure time history of some nodes (https://www.cfd-online.com/Forums/fluent/72172-pressure-time-history-some-nodes.html)

ibuki January 27, 2010 13:29

pressure time history of some nodes
 
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.

DoHander January 27, 2010 15:59

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

ibuki January 28, 2010 05:35

UDFs
 
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.

DoHander January 28, 2010 16:14

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")
))


All times are GMT -4. The time now is 18:13.