mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
corrections
This commit is contained in:
@ -60,7 +60,7 @@ Foam::Analytical<Type>::integrate
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
typename IntegrationScheme<Type>::IntegrationResult retValue;
|
typename IntegrationScheme<Type>::IntegrationResult retValue;
|
||||||
retValue.average() = alpha + (phi - alpha)*(1-exp(-beta*dt))/(beta*dt);
|
retValue.average() = alpha + (phi - alpha)*(1 - exp(-beta*dt))/(beta*dt);
|
||||||
retValue.value() = alpha + (phi - alpha)*exp(-beta*dt);
|
retValue.value() = alpha + (phi - alpha)*exp(-beta*dt);
|
||||||
|
|
||||||
return retValue;
|
return retValue;
|
||||||
|
|||||||
@ -60,7 +60,7 @@ Foam::Euler<Type>::integrate
|
|||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
typename IntegrationScheme<Type>::IntegrationResult retValue;
|
typename IntegrationScheme<Type>::IntegrationResult retValue;
|
||||||
retValue.value() = (phi + dt*alpha)/(1.0 + dt/beta);
|
retValue.value() = (phi + beta*dt*alpha)/(1.0 + beta*dt);
|
||||||
retValue.average() = 0.5*(phi + retValue.value());
|
retValue.average() = 0.5*(phi + retValue.value());
|
||||||
|
|
||||||
return retValue;
|
return retValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user