CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Getting the value of a variable at time zero

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2017, 14:01
Default Getting the value of a variable at time zero
  #1
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 15
JuPa is on a distinguished road
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!
JuPa is offline   Reply With Quote

Old   November 6, 2017, 16:34
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
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?
evcelica 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
[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


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