|
[Sponsors] |
November 6, 2017, 14:01 |
Getting the value of a variable at time zero
|
#1 |
Senior Member
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 15 |
Let's say I define a new variable called Poo.
The value of Poo varies from cell to cell. Then let's say I do a transient simulation. Is there any way I can use the value of Poo at time = 0 s? I'm trying to implement an expression such as Poo2 = Poo@t=0s - Poo@current_time Implementing Poo@current_time is a piece of cake. Implementing Poo@t=0s is challenging! |
|
November 6, 2017, 16:34 |
|
#2 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23 |
Wouldn't you know Poo @ 0s since it is a constant?
If the initial value is from a steady state run, You could then export the Poo variable everywhere, and then import it in CFX Pre as a 3D function (x,y,z,Poo). Now Poo2 = Poo(x,y,z) - Poo@current_time. Couldn't you have chosen a different variable name? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field | lakeat | OpenFOAM Community Contributions | 58 | December 23, 2021 03:36 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 10:14 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |