Skip to content
Snippets Groups Projects
Commit 84c7b02f authored by andy's avatar andy
Browse files

ENH: Updated fixedTemperature field source (constraint)

parent 61596a17
Branches
Tags
No related merge requests found
......@@ -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:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment