waveSurfacePressureFvPatchScalarField: Upgrade timeScheme -> ddtScheme

This commit is contained in:
Henry Weller
2015-07-24 11:30:48 +01:00
parent b299bad95c
commit 35ed4853a6
2 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -40,7 +40,7 @@ namespace Foam
template<> template<>
const char* NamedEnum const char* NamedEnum
< <
waveSurfacePressureFvPatchScalarField::timeSchemeType, waveSurfacePressureFvPatchScalarField::ddtSchemeType,
3 3
>::names[] = >::names[] =
{ {
@ -53,9 +53,9 @@ namespace Foam
const Foam::NamedEnum const Foam::NamedEnum
< <
Foam::waveSurfacePressureFvPatchScalarField::timeSchemeType, Foam::waveSurfacePressureFvPatchScalarField::ddtSchemeType,
3 3
> Foam::waveSurfacePressureFvPatchScalarField::timeSchemeTypeNames_; > Foam::waveSurfacePressureFvPatchScalarField::ddtSchemeTypeNames_;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -160,7 +160,7 @@ void Foam::waveSurfacePressureFvPatchScalarField::updateCoeffs()
// lookup d/dt scheme from database for zeta // lookup d/dt scheme from database for zeta
const word ddtSchemeName(zeta.mesh().ddtScheme(zeta.name())); const word ddtSchemeName(zeta.mesh().ddtScheme(zeta.name()));
timeSchemeType timeScheme(timeSchemeTypeNames_[ddtSchemeName]); ddtSchemeType ddtScheme(ddtSchemeTypeNames_[ddtSchemeName]);
// retrieve the flux field from the database // retrieve the flux field from the database
const surfaceScalarField& phi = const surfaceScalarField& phi =
@ -180,7 +180,7 @@ void Foam::waveSurfacePressureFvPatchScalarField::updateCoeffs()
dZetap /= rhop; dZetap /= rhop;
} }
switch (timeScheme) switch (ddtScheme)
{ {
case tsEuler: case tsEuler:
case tsCrankNicolson: case tsCrankNicolson:

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -99,8 +99,8 @@ public:
// Public data // Public data
//- Enumeration defining the available time schemes //- Enumeration defining the available ddt schemes
enum timeSchemeType enum ddtSchemeType
{ {
tsEuler, tsEuler,
tsCrankNicolson, tsCrankNicolson,
@ -122,7 +122,7 @@ private:
word rhoName_; word rhoName_;
//- Time scheme type names //- Time scheme type names
static const NamedEnum<timeSchemeType, 3> timeSchemeTypeNames_; static const NamedEnum<ddtSchemeType, 3> ddtSchemeTypeNames_;
public: public: