CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Boundary condition life time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2006, 07:50
Default Hello everybody, I try to set
  #1
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hello everybody,
I try to set up a new unsteady boundary condition by deriving it from the fixeValueFvPatchField, and I need to preserve some values between at least two time steps. For that I want to know how long such an object lives? Does it stay in memory between two time steps or I have to use some sort of "static" declaration for the variables I want to preserve?
Another question is that I want to enforce the usage of this boundary only for temperature fields. I suspect I have to use the dimensions for this but can anyone show me how to do that?

Thank you,
Dragos
dmoroian is offline   Reply With Quote

Old   October 27, 2006, 03:36
Default The object lives as long as yo
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
The object lives as long as your time scheme. It will get renamed so after a ddt operation your old U becomes U_0 (and for second order time scheme U_0 will become U_00).

Just add a

Pout<< mesh.names()<< endl;

before and after a ddt operation and you'll see. (all objects are registered with the mesh and the 'names()' returns the names of these)
mattijs is offline   Reply With Quote

Old   October 27, 2006, 08:33
Default Thanks Mattijs, That is good
  #3
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Thanks Mattijs,
That is good to know! But my concern was a litle bit different:
I have a class derived directly from fixedValueFvPatchField, and inside that class I define a member scalar. I was wondering if the value of that scalar is preserved from one iteration to another. Judging from your answer, I think yes!

Dragos
dmoroian 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
time varying boundary condition cfd-student CFX 0 April 15, 2008 08:31
Boundary condition of the third kind or Danckwertz boundary condition plage OpenFOAM Running, Solving & CFD 4 October 3, 2006 12:21
How to set a boundary condition as a function respect to time chnrdu OpenFOAM Running, Solving & CFD 2 June 17, 2005 04:18
time varying boundary condition co2 FLUENT 2 November 11, 2003 12:36
BOUNDARY CONDITION THAT CHANGES WITH TIME George CFX 1 August 29, 2003 10:12


All times are GMT -4. The time now is 14:24.