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

Retrieving Data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2011, 20:01
Question Retrieving Data
  #1
Member
 
Join Date: Jan 2010
Posts: 44
Rep Power: 16
Argen is on a distinguished road
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?
Argen 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
【Help】"Error: Update_Time_Level: invalid data" Chen FLUENT 2 August 24, 2014 07:51
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
CGNS vs Tecplot Data Format LWhitson2 Main CFD Forum 3 July 1, 2011 13:50
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27
retrieving data of a previous problem for the next manabendra das Phoenics 2 January 28, 2001 10:17


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