mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
consistency update IntegrationResult->integrationResult
This commit is contained in:
@ -50,7 +50,7 @@ Foam::Analytical<Type>::~Analytical()
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
typename Foam::IntegrationScheme<Type>::IntegrationResult
|
||||
typename Foam::IntegrationScheme<Type>::integrationResult
|
||||
Foam::Analytical<Type>::integrate
|
||||
(
|
||||
const Type phi,
|
||||
@ -59,7 +59,7 @@ Foam::Analytical<Type>::integrate
|
||||
const scalar beta
|
||||
) const
|
||||
{
|
||||
typename IntegrationScheme<Type>::IntegrationResult retValue;
|
||||
typename IntegrationScheme<Type>::integrationResult retValue;
|
||||
retValue.average() = alpha + (phi - alpha)*(1 - exp(-beta*dt))/(beta*dt);
|
||||
retValue.value() = alpha + (phi - alpha)*exp(-beta*dt);
|
||||
|
||||
|
||||
@ -74,7 +74,7 @@ public:
|
||||
// Member Functions
|
||||
|
||||
//- Perform the integration
|
||||
virtual typename IntegrationScheme<Type>::IntegrationResult integrate
|
||||
virtual typename IntegrationScheme<Type>::integrationResult integrate
|
||||
(
|
||||
const Type phi,
|
||||
const scalar dt,
|
||||
|
||||
@ -50,7 +50,7 @@ Foam::Euler<Type>::~Euler()
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
typename Foam::IntegrationScheme<Type>::IntegrationResult
|
||||
typename Foam::IntegrationScheme<Type>::integrationResult
|
||||
Foam::Euler<Type>::integrate
|
||||
(
|
||||
const Type phi,
|
||||
@ -59,7 +59,7 @@ Foam::Euler<Type>::integrate
|
||||
const scalar beta
|
||||
) const
|
||||
{
|
||||
typename IntegrationScheme<Type>::IntegrationResult retValue;
|
||||
typename IntegrationScheme<Type>::integrationResult retValue;
|
||||
retValue.value() = (phi + beta*dt*alpha)/(1.0 + beta*dt);
|
||||
retValue.average() = 0.5*(phi + retValue.value());
|
||||
|
||||
|
||||
@ -74,7 +74,7 @@ public:
|
||||
// Member Functions
|
||||
|
||||
//- Perform the integration
|
||||
virtual typename IntegrationScheme<Type>::IntegrationResult integrate
|
||||
virtual typename IntegrationScheme<Type>::integrationResult integrate
|
||||
(
|
||||
const Type phi,
|
||||
const scalar dt,
|
||||
|
||||
@ -57,7 +57,7 @@ class IntegrationScheme
|
||||
public:
|
||||
|
||||
//- Helper class to supply results of integration
|
||||
class IntegrationResult
|
||||
class integrationResult
|
||||
{
|
||||
//- Integration value
|
||||
Type value_;
|
||||
@ -69,7 +69,7 @@ public:
|
||||
public:
|
||||
|
||||
//- Constructor
|
||||
IntegrationResult()
|
||||
integrationResult()
|
||||
:
|
||||
value_(pTraits<Type>::zero),
|
||||
average_(pTraits<Type>::zero)
|
||||
@ -177,7 +177,7 @@ public:
|
||||
// Member Functions
|
||||
|
||||
//- Perform the Integration
|
||||
virtual IntegrationResult integrate
|
||||
virtual integrationResult integrate
|
||||
(
|
||||
const Type phi,
|
||||
const scalar dt,
|
||||
|
||||
@ -204,7 +204,7 @@ Foam::scalar Foam::ThermoParcel<ParcelType>::calcHeatTransfer
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Integrate to find the new parcel temperature
|
||||
IntegrationScheme<scalar>::IntegrationResult Tres =
|
||||
IntegrationScheme<scalar>::integrationResult Tres =
|
||||
td.cloud().TIntegrator().integrate(T_, dt, ap, bp);
|
||||
|
||||
// Using average parcel temperature for enthalpy transfer calculation
|
||||
|
||||
Reference in New Issue
Block a user