Commit 35ed4853 authored by Henry Weller's avatar Henry Weller
Browse files

waveSurfacePressureFvPatchScalarField: Upgrade timeScheme -> ddtScheme

parent b299bad9
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -40,7 +40,7 @@ namespace Foam
template<>
const char* NamedEnum
<
waveSurfacePressureFvPatchScalarField::timeSchemeType,
waveSurfacePressureFvPatchScalarField::ddtSchemeType,
3
>::names[] =
{
......@@ -53,9 +53,9 @@ namespace Foam
const Foam::NamedEnum
<
Foam::waveSurfacePressureFvPatchScalarField::timeSchemeType,
Foam::waveSurfacePressureFvPatchScalarField::ddtSchemeType,
3
> Foam::waveSurfacePressureFvPatchScalarField::timeSchemeTypeNames_;
> Foam::waveSurfacePressureFvPatchScalarField::ddtSchemeTypeNames_;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
......@@ -160,7 +160,7 @@ void Foam::waveSurfacePressureFvPatchScalarField::updateCoeffs()
// lookup d/dt scheme from database for zeta
const word ddtSchemeName(zeta.mesh().ddtScheme(zeta.name()));
timeSchemeType timeScheme(timeSchemeTypeNames_[ddtSchemeName]);
ddtSchemeType ddtScheme(ddtSchemeTypeNames_[ddtSchemeName]);
// retrieve the flux field from the database
const surfaceScalarField& phi =
......@@ -180,7 +180,7 @@ void Foam::waveSurfacePressureFvPatchScalarField::updateCoeffs()
dZetap /= rhop;
}
switch (timeScheme)
switch (ddtScheme)
{
case tsEuler:
case tsCrankNicolson:
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -99,8 +99,8 @@ public:
// Public data
//- Enumeration defining the available time schemes
enum timeSchemeType
//- Enumeration defining the available ddt schemes
enum ddtSchemeType
{
tsEuler,
tsCrankNicolson,
......@@ -122,7 +122,7 @@ private:
word rhoName_;
//- Time scheme type names
static const NamedEnum<timeSchemeType, 3> timeSchemeTypeNames_;
static const NamedEnum<ddtSchemeType, 3> ddtSchemeTypeNames_;
public:
......
Markdown is supported
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