|
[Sponsors] |
January 9, 2014, 05:33 |
Accessing field at time=0
|
#1 |
New Member
Join Date: Nov 2013
Posts: 20
Rep Power: 12 |
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!
|
|
January 9, 2014, 05:49 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
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.
|
|
January 9, 2014, 06:10 |
|
#3 |
New Member
Join Date: Nov 2013
Posts: 20
Rep Power: 12 |
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!
|
|
|
|
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 |