ENH: Updated fixedTemperature field source (constraint)

This commit is contained in:
andy
2012-10-19 11:50:22 +01:00
parent 61596a17da
commit 84c7b02fc4
2 changed files with 5 additions and 5 deletions

View File

@ -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())
{

View File

@ -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: