Formatting

This commit is contained in:
Hrvoje Jasak 2011-05-24 17:20:38 +01:00
parent 743301de42
commit 7e04c9bcb9
8 changed files with 34 additions and 33 deletions

View file

@ -161,7 +161,8 @@ void fixedNormalSlipFvPatchField<Type>::evaluate(const Pstream::commsTypes)
template<class Type> template<class Type>
tmp<Field<Type> > fixedNormalSlipFvPatchField<Type>::snGradTransformDiag() const tmp<Field<Type> >
fixedNormalSlipFvPatchField<Type>::snGradTransformDiag() const
{ {
vectorField nHat = this->patch().nf(); vectorField nHat = this->patch().nf();
vectorField diag(nHat.size()); vectorField diag(nHat.size());

View file

@ -50,6 +50,21 @@ waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
{} {}
template<class Type>
waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const dictionary& dict
)
:
advectiveFvPatchField<Type>(p, iF, dict),
psiName_(dict.lookupOrDefault<word>("psi", "psi")),
UName_(dict.lookupOrDefault<word>("U", "U")),
gamma_(readScalar(dict.lookup("gamma")))
{}
template<class Type> template<class Type>
waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
( (
@ -66,21 +81,6 @@ waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
{} {}
template<class Type>
waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
(
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const dictionary& dict
)
:
advectiveFvPatchField<Type>(p, iF, dict),
psiName_(dict.lookupOrDefault<word>("psi", "psi")),
UName_(dict.lookupOrDefault<word>("U", "U")),
gamma_(readScalar(dict.lookup("gamma")))
{}
template<class Type> template<class Type>
waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
( (
@ -89,7 +89,7 @@ waveTransmissiveFvPatchField<Type>::waveTransmissiveFvPatchField
: :
advectiveFvPatchField<Type>(ptpsf), advectiveFvPatchField<Type>(ptpsf),
psiName_(ptpsf.psiName_), psiName_(ptpsf.psiName_),
UName_(ptpsf.psiName_), UName_(ptpsf.UName_),
gamma_(ptpsf.gamma_) gamma_(ptpsf.gamma_)
{} {}

View file

@ -85,7 +85,7 @@ tmp<GeometricField<Type, fvPatchField, volMesh> > fvMeshSubset::meshToMesh
{ {
label baseFaceI = faceMap[subPatch.patch().start()+i]; label baseFaceI = faceMap[subPatch.patch().start()+i];
if (baseFaceI >= baseStart && baseFaceI < baseStart+baseSize) if (baseFaceI >= baseStart && baseFaceI < baseStart + baseSize)
{ {
directAddressing[i] = baseFaceI-baseStart; directAddressing[i] = baseFaceI-baseStart;
} }

View file

@ -116,7 +116,7 @@ DeferredCorrectionLimitedScheme<Type, Limiter, LimitFunc>::limiter
surfaceScalarField::GeometricBoundaryField& bLim = lim.boundaryField(); surfaceScalarField::GeometricBoundaryField& bLim = lim.boundaryField();
forAll(bLim, patchi) forAll (bLim, patchi)
{ {
scalarField& pLim = bLim[patchi]; scalarField& pLim = bLim[patchi];

View file

@ -111,7 +111,7 @@ public:
upwindScheme_(mesh, faceFlux) upwindScheme_(mesh, faceFlux)
{} {}
//- Construct from mesh and Istream. //- Construct from mesh and Istream
// The name of the flux field is read from the Istream and looked-up // The name of the flux field is read from the Istream and looked-up
// from the mesh objectRegistry // from the mesh objectRegistry
DeferredCorrectionLimitedScheme DeferredCorrectionLimitedScheme