Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
OpenFOAM-plus
Commits
9971916e
Commit
9971916e
authored
May 24, 2017
by
Andrew Heather
Browse files
ENH: orientedFields - refectored and simplified usage
parent
7e76d391
Changes
34
Hide whitespace changes
Inline
Side-by-side
applications/solvers/compressible/rhoCentralFoam/rhoCentralDyMFoam/rhoCentralDyMFoam.C
View file @
9971916e
...
...
@@ -120,13 +120,14 @@ int main(int argc, char *argv[])
"cSf_pos"
,
interpolate
(
c
,
pos
,
T
.
name
())
*
mesh
.
magSf
()
);
cSf_pos
.
oriented
().
oriented
()
=
true
;
cSf_pos
.
setOriented
();
surfaceScalarField
cSf_neg
(
"cSf_neg"
,
interpolate
(
c
,
neg
,
T
.
name
())
*
mesh
.
magSf
()
);
cSf_neg
.
oriented
().
o
riented
()
=
true
;
cSf_neg
.
setO
riented
();
surfaceScalarField
ap
(
...
...
applications/solvers/compressible/rhoCentralFoam/rhoCentralFoam.C
View file @
9971916e
...
...
@@ -101,13 +101,14 @@ int main(int argc, char *argv[])
"cSf_pos"
,
interpolate
(
c
,
pos
,
T
.
name
())
*
mesh
.
magSf
()
);
cSf_pos
.
oriented
().
oriented
()
=
true
;
cSf_pos
.
setOriented
();
surfaceScalarField
cSf_neg
(
"cSf_neg"
,
interpolate
(
c
,
neg
,
T
.
name
())
*
mesh
.
magSf
()
);
cSf_neg
.
oriented
().
o
riented
()
=
true
;
cSf_neg
.
setO
riented
();
surfaceScalarField
ap
(
...
...
applications/solvers/multiphase/MPPICInterFoam/alphaEqnSubCycle.H
View file @
9971916e
...
...
@@ -13,8 +13,6 @@ if (nAlphaSubCycles > 1)
dimensionedScalar
(
"0"
,
rhoPhi
.
dimensions
(),
0
)
);
rhoPhiSum
.
oriented
().
oriented
()
=
true
;
for
(
subCycle
<
volScalarField
>
alphaSubCycle
(
alpha1
,
nAlphaSubCycles
);
...
...
applications/solvers/multiphase/compressibleInterFoam/alphaEqnsSubCycle.H
View file @
9971916e
...
...
@@ -21,8 +21,6 @@
dimensionedScalar
(
"0"
,
rhoPhi
.
dimensions
(),
0
)
);
rhoPhiSum
.
oriented
().
oriented
()
=
true
;
for
(
subCycle
<
volScalarField
>
alphaSubCycle
(
alpha1
,
nAlphaSubCycles
);
...
...
applications/solvers/multiphase/compressibleMultiphaseInterFoam/multiphaseMixtureThermo/multiphaseMixtureThermo.C
View file @
9971916e
...
...
@@ -113,8 +113,7 @@ Foam::multiphaseMixtureThermo::multiphaseMixtureThermo
1e-8
/
pow
(
average
(
mesh_
.
V
()),
1
.
0
/
3
.
0
)
)
{
rhoPhi_
.
oriented
().
oriented
()
=
true
;
rhoPhi_
.
setOriented
();
calcAlphas
();
alphas_
.
write
();
correct
();
...
...
@@ -700,7 +699,7 @@ Foam::multiphaseMixtureThermo::surfaceTensionForce() const
);
surfaceScalarField
&
stf
=
tstf
.
ref
();
stf
.
oriented
().
o
riented
()
=
true
;
stf
.
setO
riented
();
forAllConstIter
(
PtrDictionary
<
phaseModel
>
,
phases_
,
phase1
)
{
...
...
applications/solvers/multiphase/interCondensingEvaporatingFoam/interCondensatingEvaporatingFoam.C
View file @
9971916e
...
...
@@ -104,7 +104,6 @@ int main(int argc, char *argv[])
mesh
,
dimensionedScalar
(
"0"
,
dimMass
/
dimTime
,
0
)
);
rhoPhi
.
oriented
().
oriented
()
=
true
;
mixture
->
correct
();
...
...
applications/solvers/multiphase/interFoam/alphaEqnSubCycle.H
View file @
9971916e
...
...
@@ -13,8 +13,6 @@ if (nAlphaSubCycles > 1)
dimensionedScalar
(
"0"
,
rhoPhi
.
dimensions
(),
0
)
);
rhoPhiSum
.
oriented
().
oriented
()
=
true
;
tmp
<
volScalarField
>
trSubDeltaT
;
if
(
LTS
)
...
...
applications/solvers/multiphase/interFoam/interMixingFoam/alphaEqnsSubCycle.H
View file @
9971916e
...
...
@@ -12,7 +12,6 @@ if (nAlphaSubCycles > 1)
mesh
,
dimensionedScalar
(
"0"
,
rhoPhi
.
dimensions
(),
0
)
);
rhoPhiSum
.
oriented
().
oriented
()
=
true
;
for
(
...
...
applications/solvers/multiphase/interPhaseChangeFoam/interPhaseChangeFoam.C
View file @
9971916e
...
...
@@ -100,8 +100,6 @@ int main(int argc, char *argv[])
mesh
,
dimensionedScalar
(
"0"
,
dimMass
/
dimTime
,
0
)
);
rhoPhi
.
oriented
().
oriented
()
=
true
;
mixture
->
correct
();
...
...
applications/solvers/multiphase/multiphaseEulerFoam/createFields.H
View file @
9971916e
...
...
@@ -39,7 +39,6 @@ surfaceScalarField phi
mesh
,
dimensionedScalar
(
"phi"
,
dimArea
*
dimVelocity
,
0
)
);
phi
.
oriented
().
oriented
()
=
true
;
multiphaseSystem
fluid
(
U
,
phi
);
...
...
applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C
View file @
9971916e
...
...
@@ -815,8 +815,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::multiphaseSystem::surfaceTension
)
)
);
tSurfaceTension
.
ref
().
oriented
().
oriented
()
=
true
;
tSurfaceTension
.
ref
().
setOriented
();
forAllConstIter
(
PtrDictionary
<
phaseModel
>
,
phases_
,
iter
)
{
...
...
@@ -920,8 +919,6 @@ void Foam::multiphaseSystem::solve()
)
);
alphaPhiSums
[
phasei
].
oriented
().
oriented
()
=
true
;
phasei
++
;
}
...
...
applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/phaseModel/phaseModel.C
View file @
9971916e
...
...
@@ -113,7 +113,7 @@ Foam::phaseModel::phaseModel
dimensionedScalar
(
"0"
,
dimensionSet
(
0
,
3
,
-
1
,
0
,
0
),
0
)
)
{
alphaPhi_
.
oriented
().
o
riented
()
=
true
;
alphaPhi_
.
setO
riented
();
const
word
phiName
=
IOobject
::
groupName
(
"phi"
,
name_
);
...
...
applications/solvers/multiphase/multiphaseEulerFoam/pEqn.H
View file @
9971916e
...
...
@@ -57,7 +57,6 @@
mesh
,
dimensionedScalar
(
"phiHbyA"
,
dimArea
*
dimVelocity
,
0
)
);
phiHbyA
.
oriented
().
oriented
()
=
true
;
volScalarField
rho
(
"rho"
,
fluid
.
rho
());
surfaceScalarField
ghSnGradRho
(
ghf
*
fvc
::
snGrad
(
rho
)
*
mesh
.
magSf
());
...
...
applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/multiphaseMixture.C
View file @
9971916e
...
...
@@ -128,7 +128,7 @@ Foam::multiphaseMixture::multiphaseMixture
1e-8
/
pow
(
average
(
mesh_
.
V
()),
1
.
0
/
3
.
0
)
)
{
rhoPhi_
.
oriented
().
o
riented
()
=
true
;
rhoPhi_
.
setO
riented
();
calcAlphas
();
alphas_
.
write
();
...
...
@@ -275,7 +275,7 @@ Foam::multiphaseMixture::surfaceTensionForce() const
);
surfaceScalarField
&
stf
=
tstf
.
ref
();
stf
.
oriented
().
o
riented
()
=
true
;
stf
.
setO
riented
();
forAllConstIter
(
PtrDictionary
<
phase
>
,
phases_
,
iter1
)
{
...
...
@@ -338,8 +338,6 @@ void Foam::multiphaseMixture::solve()
dimensionedScalar
(
"0"
,
rhoPhi_
.
dimensions
(),
0
)
);
rhoPhiSum
.
oriented
().
oriented
()
=
true
;
dimensionedScalar
totalDeltaT
=
runTime
.
deltaT
();
for
...
...
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C
View file @
9971916e
...
...
@@ -455,8 +455,7 @@ Foam::BlendedInterfacialModel<ModelType>::Ff() const
dimensionedScalar
(
"zero"
,
ModelType
::
dimF
*
dimArea
,
0
)
)
);
x
.
ref
().
oriented
().
oriented
()
=
true
;
x
.
ref
().
setOriented
();
if
(
model_
.
valid
())
{
...
...
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/PhaseSystems/MomentumTransferPhaseSystem/MomentumTransferPhaseSystem.C
View file @
9971916e
...
...
@@ -365,7 +365,7 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::Ff
)
);
tFf
.
ref
().
oriented
().
o
riented
()
=
true
;
tFf
.
ref
().
setO
riented
();
return
tFf
;
}
...
...
@@ -626,7 +626,7 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::setPhiD
)
);
phiDs
[
phasei
].
oriented
().
o
riented
()
=
true
;
phiDs
[
phasei
].
setO
riented
();
}
return
phiDs
[
phasei
];
...
...
applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/MovingPhaseModel/MovingPhaseModel.C
View file @
9971916e
...
...
@@ -200,8 +200,8 @@ Foam::MovingPhaseModel<BasePhaseModel>::MovingPhaseModel
dimensionedScalar
(
"0"
,
dimDensity
/
dimTime
,
0
)
)
{
alphaPhi_
.
oriented
().
o
riented
()
=
true
;
alphaRhoPhi_
.
oriented
().
o
riented
()
=
true
;
alphaPhi_
.
setO
riented
();
alphaRhoPhi_
.
setO
riented
();
phi_
.
writeOpt
()
=
IOobject
::
AUTO_WRITE
;
correctKinematics
();
...
...
applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C
View file @
9971916e
...
...
@@ -558,7 +558,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::multiphaseSystem::surfaceTension
)
);
tSurfaceTension
.
ref
().
oriented
().
o
riented
()
=
true
;
tSurfaceTension
.
ref
().
setO
riented
();
forAll
(
phases
(),
phasej
)
{
...
...
@@ -665,8 +665,6 @@ void Foam::multiphaseSystem::solve()
dimensionedScalar
(
"0"
,
dimensionSet
(
0
,
3
,
-
1
,
0
,
0
),
0
)
)
);
alphaPhiSums
[
phasei
].
oriented
().
oriented
()
=
true
;
}
for
...
...
applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/pU/pEqn.H
View file @
9971916e
...
...
@@ -169,8 +169,6 @@ while (pimple.correct())
dimensionedScalar
(
"phiHbyA"
,
dimArea
*
dimVelocity
,
0
)
);
phiHbyA
.
oriented
().
oriented
()
=
true
;
forAll
(
phases
,
phasei
)
{
phaseModel
&
phase
=
phases
[
phasei
];
...
...
applications/solvers/multiphase/twoLiquidMixingFoam/alphaEqnSubCycle.H
View file @
9971916e
...
...
@@ -14,7 +14,6 @@ if (nAlphaSubCycles > 1)
mesh
,
dimensionedScalar
(
"0"
,
rhoPhi
.
dimensions
(),
0
)
);
rhoPhiSum
.
oriented
().
oriented
()
=
true
;
for
(
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment