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:
@ -428,36 +428,43 @@ void Foam::forces::write()
|
|||||||
Info<< "forces output:" << nl
|
Info<< "forces output:" << nl
|
||||||
<< " forces(pressure, viscous)" << fm.first() << nl
|
<< " forces(pressure, viscous)" << fm.first() << nl
|
||||||
<< " moment(pressure, viscous)" << fm.second() << nl;
|
<< " moment(pressure, viscous)" << fm.second() << nl;
|
||||||
|
}
|
||||||
|
|
||||||
forcesFilePtr_() << obr_.time().value() << tab << fm;
|
forcesFilePtr_() << obr_.time().value() << tab << fm;
|
||||||
|
|
||||||
if (localSystem_)
|
if (localSystem_)
|
||||||
|
{
|
||||||
|
forcesMoments fmLocal;
|
||||||
|
|
||||||
|
fmLocal.first().first() =
|
||||||
|
coordSys_.localVector(fm.first().first());
|
||||||
|
|
||||||
|
fmLocal.first().second() =
|
||||||
|
coordSys_.localVector(fm.first().second());
|
||||||
|
|
||||||
|
fmLocal.second().first() =
|
||||||
|
coordSys_.localVector(fm.second().first());
|
||||||
|
|
||||||
|
fmLocal.second().second() =
|
||||||
|
coordSys_.localVector(fm.second().second());
|
||||||
|
|
||||||
|
forcesFilePtr_() << tab << fmLocal;
|
||||||
|
|
||||||
|
if (log_)
|
||||||
{
|
{
|
||||||
forcesMoments fmLocal;
|
|
||||||
|
|
||||||
fmLocal.first().first() =
|
|
||||||
coordSys_.localVector(fm.first().first());
|
|
||||||
|
|
||||||
fmLocal.first().second() =
|
|
||||||
coordSys_.localVector(fm.first().second());
|
|
||||||
|
|
||||||
fmLocal.second().first() =
|
|
||||||
coordSys_.localVector(fm.second().first());
|
|
||||||
|
|
||||||
fmLocal.second().second() =
|
|
||||||
coordSys_.localVector(fm.second().second());
|
|
||||||
|
|
||||||
forcesFilePtr_() << tab << fmLocal;
|
|
||||||
|
|
||||||
|
|
||||||
Info<< " local:" << nl
|
Info<< " local:" << nl
|
||||||
<< " forces(pressure, viscous)" << fmLocal.first()
|
<< " forces(pressure, viscous)" << fmLocal.first()
|
||||||
<< nl
|
<< nl
|
||||||
<< " moment(pressure, viscous)" << fmLocal.second()
|
<< " moment(pressure, viscous)" << fmLocal.second()
|
||||||
<< nl;
|
<< nl;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
forcesFilePtr_() << endl;
|
|
||||||
|
forcesFilePtr_() << endl;
|
||||||
|
|
||||||
|
if (log_)
|
||||||
|
{
|
||||||
Info<< endl;
|
Info<< endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,7 +49,8 @@ const ThermoType& Foam::multiComponentMixture<ThermoType>::constructSpeciesData
|
|||||||
template<class ThermoType>
|
template<class ThermoType>
|
||||||
void Foam::multiComponentMixture<ThermoType>::correctMassFractions()
|
void Foam::multiComponentMixture<ThermoType>::correctMassFractions()
|
||||||
{
|
{
|
||||||
volScalarField Yt("Yt", Y_[0]);
|
// It changes Yt patches to "calculated"
|
||||||
|
volScalarField Yt("Yt", 1.0*Y_[0]);
|
||||||
|
|
||||||
for (label n=1; n<Y_.size(); n++)
|
for (label n=1; n<Y_.size(); n++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -21,32 +21,27 @@ boundaryField
|
|||||||
{
|
{
|
||||||
top
|
top
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type calculated;
|
||||||
inletValue $internalField;
|
|
||||||
value $internalField;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ground
|
ground
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type calculated;
|
||||||
}
|
}
|
||||||
|
|
||||||
sides
|
sides
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type calculated;
|
||||||
inletValue $internalField;
|
|
||||||
value $internalField;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
burner
|
burner
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type calculated;
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
"(region0_to.*)"
|
"(region0_to.*)"
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type calculated;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,24 +23,19 @@ boundaryField
|
|||||||
{
|
{
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type calculated;
|
||||||
inletValue $internalField;
|
|
||||||
value $internalField;
|
|
||||||
}
|
}
|
||||||
sides
|
sides
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type calculated;
|
||||||
inletValue $internalField;
|
|
||||||
value $internalField;
|
|
||||||
}
|
}
|
||||||
base
|
base
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type calculated;
|
||||||
}
|
}
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type calculated;
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
frontBack
|
frontBack
|
||||||
{
|
{
|
||||||
|
|||||||
@ -23,24 +23,19 @@ boundaryField
|
|||||||
{
|
{
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type calculated;
|
||||||
inletValue $internalField;
|
|
||||||
value $internalField;
|
|
||||||
}
|
}
|
||||||
sides
|
sides
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type calculated;
|
||||||
inletValue $internalField;
|
|
||||||
value $internalField;
|
|
||||||
}
|
}
|
||||||
base
|
base
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type calculated;
|
||||||
}
|
}
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type calculated;
|
||||||
value uniform 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,20 +23,15 @@ boundaryField
|
|||||||
{
|
{
|
||||||
fuel
|
fuel
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type calculated;
|
||||||
value uniform 0.0;
|
|
||||||
}
|
}
|
||||||
air
|
air
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type calculated;
|
||||||
value uniform 0.77;
|
|
||||||
}
|
}
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type calculated;
|
||||||
inletValue uniform 0.77;
|
|
||||||
value uniform 0.77;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
frontAndBack
|
frontAndBack
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user