mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: scalarTransport: transfer write control from controlDict to function object
This commit is contained in:
committed by
Andrew Heather
parent
ab976a5ac0
commit
32d3fabcfe
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||
Copyright (C) 2015-2020 OpenCFD Ltd.
|
||||
Copyright (C) 2015-2022 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -69,7 +69,7 @@ Foam::volScalarField& Foam::functionObjects::scalarTransport::transportedField()
|
||||
mesh_.time().timeName(),
|
||||
mesh_,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh_
|
||||
);
|
||||
@ -374,6 +374,14 @@ bool Foam::functionObjects::scalarTransport::execute()
|
||||
|
||||
bool Foam::functionObjects::scalarTransport::write()
|
||||
{
|
||||
Log << type() << " write: " << name() << nl
|
||||
<< tab << fieldName_ << nl
|
||||
<< endl;
|
||||
|
||||
volScalarField& s = transportedField();
|
||||
|
||||
s.write();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user