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

value of previous time step in "chtMultiregionFoam" Solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 46
Rep Power: 10
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


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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
time step continuity problem in VAWT simulation lpz_michele OpenFOAM Running, Solving & CFD 5 February 22, 2018 19:50
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 07:09
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


All times are GMT -4. The time now is 19:46.