From 84c7b02fc4d650b3d9530f396ba9b5ce9bce9679 Mon Sep 17 00:00:00 2001 From: andy <andy> Date: Fri, 19 Oct 2012 11:50:22 +0100 Subject: [PATCH] ENH: Updated fixedTemperature field source (constraint) --- .../derived/fixedTemperatureSource/fixedTemperatureSource.C | 4 ++-- .../derived/fixedTemperatureSource/fixedTemperatureSource.H | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fieldSources/derived/fixedTemperatureSource/fixedTemperatureSource.C b/src/fieldSources/derived/fixedTemperatureSource/fixedTemperatureSource.C index 09a92bb1933..bef68f3c4e9 100644 --- a/src/fieldSources/derived/fixedTemperatureSource/fixedTemperatureSource.C +++ b/src/fieldSources/derived/fixedTemperatureSource/fixedTemperatureSource.C @@ -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()) { diff --git a/src/fieldSources/derived/fixedTemperatureSource/fixedTemperatureSource.H b/src/fieldSources/derived/fixedTemperatureSource/fixedTemperatureSource.H index 6c56d6c7628..4281a38e2cc 100644 --- a/src/fieldSources/derived/fixedTemperatureSource/fixedTemperatureSource.H +++ b/src/fieldSources/derived/fixedTemperatureSource/fixedTemperatureSource.H @@ -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: -- GitLab