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

Accessing field at time=0

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2014, 05:33
Default Accessing field at time=0
  #1
New Member
 
Join Date: Nov 2013
Posts: 20
Rep Power: 12
Jakob1 is on a distinguished road
Hey I am looking for a function that reads the field T at time=0. So far I am just keeping an extra field T0 that doesn't change throughout the run but that seems unelegant. Surely there must be a better option. Thanks!
Jakob1 is offline   Reply With Quote

Old   January 9, 2014, 05:49
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
If you need the field continuously, it is better to read it from memory than from disk, in my opinion. But you can easily change the IOobject to read for t=0.
Bernhard is offline   Reply With Quote

Old   January 9, 2014, 06:10
Default
  #3
New Member
 
Join Date: Nov 2013
Posts: 20
Rep Power: 12
Jakob1 is on a distinguished road
Yes I need it at every timestep to calculate the sensible heat. So you mean blocking some memory is still faster than reading it at every step? Guess that makes sense since the memory is never used to capacity unlike the CPU. Thanks!
Jakob1 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 04:49
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Accessing phi field for sampling plane francesco85 OpenFOAM Post-Processing 1 August 5, 2011 05:49
accessing another velocity field in bc daviderzen OpenFOAM 0 April 20, 2011 06:24
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51


All times are GMT -4. The time now is 15:50.