Slightly massaged.

This commit is contained in:
henry
2008-06-03 15:18:49 +01:00
parent d0a44dd1e3
commit a38d55881a
2 changed files with 29 additions and 35 deletions

View File

@ -28,13 +28,10 @@ License
#include "Time.H" #include "Time.H"
#include "IFstream.H" #include "IFstream.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type> template<class Type>
Foam:: Foam::timeVaryingUniformFixedValueFvPatchField<Type>::
timeVaryingUniformFixedValueFvPatchField<Type>::
timeVaryingUniformFixedValueFvPatchField timeVaryingUniformFixedValueFvPatchField
( (
const fvPatch& p, const fvPatch& p,
@ -46,25 +43,7 @@ timeVaryingUniformFixedValueFvPatchField
template<class Type> template<class Type>
Foam:: Foam::timeVaryingUniformFixedValueFvPatchField<Type>::
timeVaryingUniformFixedValueFvPatchField<Type>::
timeVaryingUniformFixedValueFvPatchField
(
const timeVaryingUniformFixedValueFvPatchField<Type>& ptf,
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const fvPatchFieldMapper& mapper
)
:
fixedValueFvPatchField<Type>(ptf, p, iF, mapper),
timeDataFile_(ptf.timeDataFile_),
timeSeries_(ptf.timeBounding())
{}
template<class Type>
Foam::
timeVaryingUniformFixedValueFvPatchField<Type>::
timeVaryingUniformFixedValueFvPatchField timeVaryingUniformFixedValueFvPatchField
( (
const fvPatch& p, const fvPatch& p,
@ -88,8 +67,23 @@ timeVaryingUniformFixedValueFvPatchField
template<class Type> template<class Type>
Foam:: Foam::timeVaryingUniformFixedValueFvPatchField<Type>::
timeVaryingUniformFixedValueFvPatchField<Type>:: timeVaryingUniformFixedValueFvPatchField
(
const timeVaryingUniformFixedValueFvPatchField<Type>& ptf,
const fvPatch& p,
const DimensionedField<Type, volMesh>& iF,
const fvPatchFieldMapper& mapper
)
:
fixedValueFvPatchField<Type>(ptf, p, iF, mapper),
timeDataFile_(ptf.timeDataFile_),
timeSeries_(ptf.timeBounding())
{}
template<class Type>
Foam::timeVaryingUniformFixedValueFvPatchField<Type>::
timeVaryingUniformFixedValueFvPatchField timeVaryingUniformFixedValueFvPatchField
( (
const timeVaryingUniformFixedValueFvPatchField<Type>& ptf const timeVaryingUniformFixedValueFvPatchField<Type>& ptf
@ -102,8 +96,7 @@ timeVaryingUniformFixedValueFvPatchField
template<class Type> template<class Type>
Foam:: Foam::timeVaryingUniformFixedValueFvPatchField<Type>::
timeVaryingUniformFixedValueFvPatchField<Type>::
timeVaryingUniformFixedValueFvPatchField timeVaryingUniformFixedValueFvPatchField
( (
const timeVaryingUniformFixedValueFvPatchField<Type>& ptf, const timeVaryingUniformFixedValueFvPatchField<Type>& ptf,
@ -119,8 +112,7 @@ timeVaryingUniformFixedValueFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>
Type Type Foam::timeVaryingUniformFixedValueFvPatchField<Type>::
Foam::timeVaryingUniformFixedValueFvPatchField<Type>::
currentValue() currentValue()
{ {
if (timeSeries_.size() == 0) if (timeSeries_.size() == 0)
@ -186,7 +178,10 @@ void Foam::timeVaryingUniformFixedValueFvPatchField<Type>::updateCoeffs()
template<class Type> template<class Type>
void Foam::timeVaryingUniformFixedValueFvPatchField<Type>::write(Ostream& os) const void Foam::timeVaryingUniformFixedValueFvPatchField<Type>::write
(
Ostream& os
) const
{ {
fvPatchField<Type>::write(os); fvPatchField<Type>::write(os);
os.writeKeyword("timeDataFile") os.writeKeyword("timeDataFile")
@ -197,6 +192,4 @@ void Foam::timeVaryingUniformFixedValueFvPatchField<Type>::write(Ostream& os) co
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* // // ************************************************************************* //

View File

@ -72,15 +72,16 @@ class timeVaryingUniformFixedValueFvPatchField
{ {
// Private data // Private data
//- file containing time/uniformFixedValue //- File containing time/uniformFixedValue
fileName timeDataFile_; fileName timeDataFile_;
//- the time series being used, including the bounding treatment //- The time series being used, including the bounding treatment
timeSeries<Type> timeSeries_; timeSeries<Type> timeSeries_;
//- interpolate the value at the current time //- Interpolate the value at the current time
Type currentValue(); Type currentValue();
public: public:
//- Runtime type information //- Runtime type information