Clean-up
This commit is contained in:
parent
50a543f90b
commit
7b7dce6b60
1 changed files with 46 additions and 47 deletions
|
@ -267,58 +267,57 @@ steadyStateDdtScheme<Type>::fvcDdtPhiCorr
|
||||||
U.dimensions() == dimVelocity
|
U.dimensions() == dimVelocity
|
||||||
&& phi.dimensions() == dimVelocity*dimArea
|
&& phi.dimensions() == dimVelocity*dimArea
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return tmp<fluxFieldType>
|
return tmp<fluxFieldType>
|
||||||
(
|
(
|
||||||
new fluxFieldType
|
new fluxFieldType
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"ddtPhiCorr("
|
"ddtPhiCorr("
|
||||||
+ rA.name() + ',' + rho.name()
|
+ rA.name() + ',' + rho.name()
|
||||||
+ ',' + U.name() + ',' + phi.name() + ')',
|
+ ',' + U.name() + ',' + phi.name() + ')',
|
||||||
mesh().time().timeName(),
|
mesh().time().timeName(),
|
||||||
mesh()
|
mesh()
|
||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<typename flux<Type>::type>
|
dimensioned<typename flux<Type>::type>
|
||||||
(
|
(
|
||||||
"0",
|
"zero",
|
||||||
rA.dimensions()*rho.dimensions()*phi.dimensions()/dimTime,
|
rA.dimensions()*rho.dimensions()*phi.dimensions()/dimTime,
|
||||||
pTraits<typename flux<Type>::type>::zero
|
pTraits<typename flux<Type>::type>::zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else if
|
else if
|
||||||
(
|
(
|
||||||
U.dimensions() == dimVelocity
|
U.dimensions() == dimVelocity
|
||||||
&& phi.dimensions() == rho.dimensions()*dimVelocity*dimArea
|
&& phi.dimensions() == rho.dimensions()*dimVelocity*dimArea
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return tmp<fluxFieldType>
|
return tmp<fluxFieldType>
|
||||||
(
|
(
|
||||||
new fluxFieldType
|
new fluxFieldType
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"ddtPhiCorr("
|
"ddtPhiCorr("
|
||||||
+ rA.name() + ',' + rho.name()
|
+ rA.name() + ',' + rho.name()
|
||||||
+ ',' + U.name() + ',' + phi.name() + ')',
|
+ ',' + U.name() + ',' + phi.name() + ')',
|
||||||
mesh().time().timeName(),
|
mesh().time().timeName(),
|
||||||
mesh()
|
mesh()
|
||||||
),
|
),
|
||||||
mesh(),
|
mesh(),
|
||||||
dimensioned<typename flux<Type>::type>
|
dimensioned<typename flux<Type>::type>
|
||||||
(
|
(
|
||||||
"0",
|
"zero",
|
||||||
rA.dimensions()*phi.dimensions()/dimTime,
|
rA.dimensions()*phi.dimensions()/dimTime,
|
||||||
pTraits<typename flux<Type>::type>::zero
|
pTraits<typename flux<Type>::type>::zero
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue