mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: energyTransport: transfer write control from controlDict to function object (#3303)
This commit is contained in:
committed by
Kutalmis Bercin
parent
eaf17337aa
commit
821cdf6681
@ -62,7 +62,7 @@ Foam::volScalarField& Foam::functionObjects::energyTransport::transportedField()
|
||||
mesh_.time().timeName(),
|
||||
mesh_,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::AUTO_WRITE,
|
||||
IOobject::NO_WRITE,
|
||||
IOobject::REGISTER
|
||||
),
|
||||
mesh_
|
||||
@ -437,6 +437,14 @@ bool Foam::functionObjects::energyTransport::execute()
|
||||
|
||||
bool Foam::functionObjects::energyTransport::write()
|
||||
{
|
||||
Log << type() << " write: " << name() << nl
|
||||
<< tab << fieldName_ << nl
|
||||
<< endl;
|
||||
|
||||
volScalarField& s = transportedField();
|
||||
|
||||
s.write();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user