mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -73,8 +73,6 @@ Foam::solidBodyMotionFunctions::axisRotationMotion::transformation() const
|
||||
{
|
||||
scalar t = time_.value();
|
||||
|
||||
// Motion around a centre of gravity
|
||||
|
||||
// Rotation around centre of gravity (in radians)
|
||||
vector omega
|
||||
(
|
||||
@ -84,10 +82,7 @@ Foam::solidBodyMotionFunctions::axisRotationMotion::transformation() const
|
||||
);
|
||||
|
||||
scalar magOmega = mag(omega);
|
||||
|
||||
scalar cosHalfTheta = cos(0.5*magOmega);
|
||||
|
||||
quaternion R(cosHalfTheta, omega/magOmega);
|
||||
quaternion R(omega/magOmega, magOmega);
|
||||
septernion TR(septernion(CofG_)*R*septernion(-CofG_));
|
||||
|
||||
Info<< "solidBodyMotionFunctions::axisRotationMotion::transformation(): "
|
||||
|
||||
@ -350,6 +350,38 @@ Foam::tmp<Foam::volScalarField> Foam::basicThermo::hc() const
|
||||
}
|
||||
|
||||
|
||||
Foam::tmp<Foam::scalarField> Foam::basicThermo::TH
|
||||
(
|
||||
const scalarField& h,
|
||||
const scalarField& T0, // starting temperature
|
||||
const labelList& cells
|
||||
) const
|
||||
{
|
||||
notImplemented
|
||||
(
|
||||
"basicThermo::TH"
|
||||
"(const scalarField&, const scalarField&, const labelList&) const"
|
||||
);
|
||||
return tmp<scalarField>(NULL);
|
||||
}
|
||||
|
||||
|
||||
Foam::tmp<Foam::scalarField> Foam::basicThermo::TH
|
||||
(
|
||||
const scalarField& h,
|
||||
const scalarField& T0, // starting temperature
|
||||
const label patchi
|
||||
) const
|
||||
{
|
||||
notImplemented
|
||||
(
|
||||
"basicThermo::TH"
|
||||
"(const scalarField&, const scalarField&, const label) const"
|
||||
);
|
||||
return tmp<scalarField>(NULL);
|
||||
}
|
||||
|
||||
|
||||
Foam::volScalarField& Foam::basicThermo::e()
|
||||
{
|
||||
notImplemented("basicThermo::e()");
|
||||
|
||||
@ -198,6 +198,22 @@ public:
|
||||
//- Chemical enthalpy [J/kg]
|
||||
virtual tmp<volScalarField> hc() const;
|
||||
|
||||
//- Temperature from enthalpy for cell-set
|
||||
virtual tmp<scalarField> TH
|
||||
(
|
||||
const scalarField& h,
|
||||
const scalarField& T0, // starting temperature
|
||||
const labelList& cells
|
||||
) const;
|
||||
|
||||
//- Temperature from enthalpy for patch
|
||||
virtual tmp<scalarField> TH
|
||||
(
|
||||
const scalarField& h,
|
||||
const scalarField& T0, // starting temperature
|
||||
const label patchi
|
||||
) const;
|
||||
|
||||
//- Internal energy [J/kg]
|
||||
// Non-const access allowed for transport equations
|
||||
virtual volScalarField& e();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -205,6 +205,50 @@ Foam::tmp<Foam::scalarField> Foam::hRhoThermo<MixtureType>::h
|
||||
}
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField> Foam::hRhoThermo<MixtureType>::TH
|
||||
(
|
||||
const scalarField& h,
|
||||
const scalarField& T0,
|
||||
const labelList& cells
|
||||
) const
|
||||
{
|
||||
tmp<scalarField> tT(new scalarField(h.size()));
|
||||
scalarField& T = tT();
|
||||
|
||||
forAll(h, celli)
|
||||
{
|
||||
T[celli] = this->cellMixture(cells[celli]).TH(h[celli], T0[celli]);
|
||||
}
|
||||
|
||||
return tT;
|
||||
}
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField> Foam::hRhoThermo<MixtureType>::TH
|
||||
(
|
||||
const scalarField& h,
|
||||
const scalarField& T0,
|
||||
const label patchi
|
||||
) const
|
||||
{
|
||||
tmp<scalarField> tT(new scalarField(h.size()));
|
||||
scalarField& T = tT();
|
||||
|
||||
forAll(h, facei)
|
||||
{
|
||||
T[facei] = this->patchFaceMixture
|
||||
(
|
||||
patchi,
|
||||
facei
|
||||
).TH(h[facei], T0[facei]);
|
||||
}
|
||||
|
||||
return tT;
|
||||
}
|
||||
|
||||
|
||||
template<class MixtureType>
|
||||
Foam::tmp<Foam::scalarField> Foam::hRhoThermo<MixtureType>::Cp
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -134,6 +134,22 @@ public:
|
||||
const label patchi
|
||||
) const;
|
||||
|
||||
//- Temperature from enthalpy for cell-set
|
||||
virtual tmp<scalarField> TH
|
||||
(
|
||||
const scalarField& h,
|
||||
const scalarField& T0, // starting temperature
|
||||
const labelList& cells
|
||||
) const;
|
||||
|
||||
//- Temperature from enthalpy for patch
|
||||
virtual tmp<scalarField> TH
|
||||
(
|
||||
const scalarField& h,
|
||||
const scalarField& T0, // starting temperature
|
||||
const label patchi
|
||||
) const;
|
||||
|
||||
//- Heat capacity at constant pressure for patch [J/kg/K]
|
||||
virtual tmp<scalarField> Cp
|
||||
(
|
||||
|
||||
@ -35,7 +35,7 @@ namespace Foam
|
||||
|
||||
bool Foam::triSurface::readVTK(const fileName& fName)
|
||||
{
|
||||
// Read (and triagulate) point, faces, zone info
|
||||
// Read (and triangulate) point, faces, zone info
|
||||
fileFormats::VTKsurfaceFormat<triFace> surf(fName);
|
||||
|
||||
List<labelledTri> tris(surf.faces().size());
|
||||
|
||||
Reference in New Issue
Block a user