Skip to content
Snippets Groups Projects
Commit 42603a06 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Updated the maxwellSlipU BC to derive from the partialSlip BC

parent e0790e7a
No related branches found
No related tags found
1 merge request!121Merge develop into master for v1706 release
mixedFixedValueSlip/mixedFixedValueSlipFvPatchFields.C
U/maxwellSlipUFvPatchVectorField.C U/maxwellSlipUFvPatchVectorField.C
T/smoluchowskiJumpTFvPatchScalarField.C T/smoluchowskiJumpTFvPatchScalarField.C
rho/fixedRhoFvPatchScalarField.C rho/fixedRhoFvPatchScalarField.C
......
...@@ -38,7 +38,7 @@ Foam::maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField ...@@ -38,7 +38,7 @@ Foam::maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) )
: :
mixedFixedValueSlipFvPatchVectorField(p, iF), partialSlipFvPatchVectorField(p, iF),
TName_("T"), TName_("T"),
rhoName_("rho"), rhoName_("rho"),
psiName_("thermo:psi"), psiName_("thermo:psi"),
...@@ -59,7 +59,7 @@ Foam::maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField ...@@ -59,7 +59,7 @@ Foam::maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField
const fvPatchFieldMapper& mapper const fvPatchFieldMapper& mapper
) )
: :
mixedFixedValueSlipFvPatchVectorField(mspvf, p, iF, mapper), partialSlipFvPatchVectorField(mspvf, p, iF, mapper),
TName_(mspvf.TName_), TName_(mspvf.TName_),
rhoName_(mspvf.rhoName_), rhoName_(mspvf.rhoName_),
psiName_(mspvf.psiName_), psiName_(mspvf.psiName_),
...@@ -79,7 +79,7 @@ Foam::maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField ...@@ -79,7 +79,7 @@ Foam::maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField
const dictionary& dict const dictionary& dict
) )
: :
mixedFixedValueSlipFvPatchVectorField(p, iF), partialSlipFvPatchVectorField(p, iF),
TName_(dict.lookupOrDefault<word>("T", "T")), TName_(dict.lookupOrDefault<word>("T", "T")),
rhoName_(dict.lookupOrDefault<word>("rho", "rho")), rhoName_(dict.lookupOrDefault<word>("rho", "rho")),
psiName_(dict.lookupOrDefault<word>("psi", "thermo:psi")), psiName_(dict.lookupOrDefault<word>("psi", "thermo:psi")),
...@@ -132,7 +132,7 @@ Foam::maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField ...@@ -132,7 +132,7 @@ Foam::maxwellSlipUFvPatchVectorField::maxwellSlipUFvPatchVectorField
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) )
: :
mixedFixedValueSlipFvPatchVectorField(mspvf, iF), partialSlipFvPatchVectorField(mspvf, iF),
TName_(mspvf.TName_), TName_(mspvf.TName_),
rhoName_(mspvf.rhoName_), rhoName_(mspvf.rhoName_),
psiName_(mspvf.psiName_), psiName_(mspvf.psiName_),
...@@ -193,7 +193,7 @@ void Foam::maxwellSlipUFvPatchVectorField::updateCoeffs() ...@@ -193,7 +193,7 @@ void Foam::maxwellSlipUFvPatchVectorField::updateCoeffs()
refValue() -= C1/prho*transform(I - n*n, (n & ptauMC)); refValue() -= C1/prho*transform(I - n*n, (n & ptauMC));
} }
mixedFixedValueSlipFvPatchVectorField::updateCoeffs(); partialSlipFvPatchVectorField::updateCoeffs();
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,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-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -36,7 +36,7 @@ SourceFiles ...@@ -36,7 +36,7 @@ SourceFiles
#ifndef maxwellSlipUFvPatchVectorField_H #ifndef maxwellSlipUFvPatchVectorField_H
#define maxwellSlipUFvPatchVectorField_H #define maxwellSlipUFvPatchVectorField_H
#include "mixedFixedValueSlipFvPatchFields.H" #include "partialSlipFvPatchFields.H"
#include "Switch.H" #include "Switch.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...@@ -50,7 +50,7 @@ namespace Foam ...@@ -50,7 +50,7 @@ namespace Foam
class maxwellSlipUFvPatchVectorField class maxwellSlipUFvPatchVectorField
: :
public mixedFixedValueSlipFvPatchVectorField public partialSlipFvPatchVectorField
{ {
// Private data // Private data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment