|
[Sponsors] |
December 5, 2011, 21:01 |
Retrieving Data
|
#1 |
Member
Join Date: Jan 2010
Posts: 44
Rep Power: 16 |
I set up one function in a subfoam to feedback the calculated data to the main solver as,
Foam::tmp<Foam::volScalarField> Foam::xxxx::abcd::getSRC() const { return tmp<volScalarField> ( new volScalarField ( IOobject ( "SRC", mesh_.time().timeName(), mesh_, IOobject::NO_READ, IOobject::NO_WRITE, false ), SRC_ ) ); } Then I exported the data in the main foam by UList<scalar> OF_SRC= xxxx->getSRC(); and found that the first two values are equal to zero (k=0 3.21677e-317, k=1 3.23275e-317) and the rest are the same to the values calculated in sub-foam. Any idea about this problem? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
【Help】"Error: Update_Time_Level: invalid data" | Chen | FLUENT | 2 | August 24, 2014 08:51 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 18:51 |
CGNS vs Tecplot Data Format | LWhitson2 | Main CFD Forum | 3 | July 1, 2011 14:50 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |
retrieving data of a previous problem for the next | manabendra das | Phoenics | 2 | January 28, 2001 11:17 |