Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev

This commit is contained in:
Henry Weller
2017-10-23 22:23:15 +01:00
5 changed files with 12 additions and 11 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -133,7 +133,7 @@ void Foam::RBD::restraints::linearAxialAngularSpring::restrain
}
// Accumulate the force for the restrained body
fx[bodyIndex_] += spatialVector(moment, Zero);
fx[bodyIndex_] += model_.X0(bodyID_).T() & spatialVector(moment, Zero);
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -85,7 +85,7 @@ void Foam::RBD::restraints::linearDamper::restrain
}
// Accumulate the force for the restrained body
fx[bodyIndex_] += spatialVector(Zero, force);
fx[bodyIndex_] += model_.X0(bodyID_).T() & spatialVector(Zero, force);
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -85,7 +85,7 @@ void Foam::RBD::restraints::sphericalAngularDamper::restrain
}
// Accumulate the force for the restrained body
fx[bodyIndex_] += spatialVector(moment, Zero);
fx[bodyIndex_] += model_.X0(bodyID_).T() & spatialVector(moment, Zero);
}

View File

@ -58,8 +58,8 @@ Foam::waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField
:
mixedFvPatchScalarField(p, iF),
UName_(dict.lookupOrDefault<word>("U", "U")),
liquid_(dict.lookupOrDefault<bool>("liquid", true)),
inletOutlet_(dict.lookupOrDefault<bool>("inletOutlet", true))
liquid_(dict.lookupOrDefault<Switch>("liquid", true)),
inletOutlet_(dict.lookupOrDefault<Switch>("inletOutlet", true))
{
if (dict.found("value"))
{
@ -171,7 +171,8 @@ void Foam::waveAlphaFvPatchScalarField::write
{
mixedFvPatchScalarField::write(os);
writeEntryIfDifferent<word>(os, "U", "U", UName_);
writeEntryIfDifferent<bool>(os, "inletOutlet", true, inletOutlet_);
writeEntryIfDifferent<Switch>(os, "inletOutlet", true, inletOutlet_);
writeEntryIfDifferent<Switch>(os, "liquid", true, liquid_);
}

View File

@ -79,14 +79,14 @@ class waveAlphaFvPatchScalarField
word UName_;
//- Is this alpha field that of the liquid under the wave?
const bool liquid_;
const Switch liquid_;
//- Act as an inlet/outlet patch? If false, the alpha field will be set
// by the wave model even during outflow. This may apply the wave model
// more accurately, but it might also be unstable. If true, the alpha
// boundary condition will be zero gradient when the flow reverses, as
// is usual.
const bool inletOutlet_;
const Switch inletOutlet_;
public: