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

value of previous time step in "chtMultiregionFoam" Solver

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 9, 2016, 04:10
Default value of previous time step in "chtMultiregionFoam" Solver
  #1
Member
 
Join Date: Oct 2015
Location: montreal- canada
Posts: 42
Rep Power: 3
Mohammad Jam is on a distinguished road
Hi

How to implement .oldTime(); after writing volScalarField in chtMultiregionFoam?

When i do that it gives this error:
class Foam::PtrList<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >’ has no member named ‘oldTime’


Quote:
PtrList<volScalarField> lapSolid(solidRegions.size());

Info<< " Adding to Xn \n" << endl; // initialize the volScalarrField
Xn.set
(
i,
new volScalarField
(
IOobject
(
"Xn",
runTime.timeName(),
solidRegions[i],
IOobject::NO_READ,
IOobject::NO_WRITE
),
solidRegions[i],
dimensionedScalar("Xn", dimensionSet(0,-2,0,1,0,0,0), scalar(1.0))
)
);


xn.oldTime(); // this should overwrite the xn with the results obtained in the previous step
// I THINK THIS IS NOT WORKING!!
Mohammad Jam is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 08:09
time step continuity problem in VAWT simulation lpz_michele OpenFOAM Running, Solving & CFD 4 October 15, 2015 06:19
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
AMI speed performance danny123 OpenFOAM 19 October 24, 2012 07:44


All times are GMT -4. The time now is 07:52.