mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated fixedTemperature field source (constraint)
This commit is contained in:
@ -54,7 +54,7 @@ Foam::fixedTemperatureSource::fixedTemperatureSource
|
||||
const fvMesh& mesh
|
||||
)
|
||||
:
|
||||
ExplicitSetValue<scalar>(name, modelType, dict, mesh),
|
||||
basicSource(name, modelType, dict, mesh),
|
||||
T_(readScalar(coeffs_.lookup("temperature")))
|
||||
{
|
||||
fieldNames_.setSize(1, "energy");
|
||||
@ -77,7 +77,7 @@ void Foam::fixedTemperatureSource::setValue
|
||||
)
|
||||
{
|
||||
const basicThermo& thermo =
|
||||
mesh_.lookupObject<basicThermo>("thermophsicalProperties");
|
||||
mesh_.lookupObject<basicThermo>("thermophysicalProperties");
|
||||
|
||||
if (eqn.psi().name() == thermo.he().name())
|
||||
{
|
||||
|
||||
@ -38,14 +38,14 @@ Description
|
||||
|
||||
|
||||
SourceFiles
|
||||
fixedTemperatureSource.C
|
||||
basicSource.C
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef fixedTemperatureSource_H
|
||||
#define fixedTemperatureSource_H
|
||||
|
||||
#include "ExplicitSetValue.H"
|
||||
#include "basicSource.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -58,7 +58,7 @@ namespace Foam
|
||||
|
||||
class fixedTemperatureSource
|
||||
:
|
||||
public ExplicitSetValue<scalar>
|
||||
public basicSource
|
||||
{
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user