This commit is contained in:
Hrvoje Jasak 2013-12-05 15:09:33 +00:00
parent 50a543f90b
commit 7b7dce6b60

View file

@ -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
) )
) )
); );
} }
} }