STYLE: renamed convertTimeBase to more descriptive userTimeToTime

This commit is contained in:
Andrew Heather
2021-11-22 16:50:21 +00:00
committed by Mark Olesen
parent 098aec4962
commit f6ee1811e7
13 changed files with 14 additions and 14 deletions

View File

@ -132,7 +132,7 @@ void Foam::function1Base::resetDb(const objectRegistry& db) noexcept
} }
void Foam::function1Base::convertTimeBase(const Time& t) void Foam::function1Base::userTimeToTime(const Time& t)
{} {}

View File

@ -167,7 +167,7 @@ public:
// Manipulation // Manipulation
//- Convert time //- Convert time
virtual void convertTimeBase(const Time& t); virtual void userTimeToTime(const Time& t);
}; };

View File

@ -129,7 +129,7 @@ Foam::Function1Types::Polynomial<Type>::Polynomial(const Polynomial& poly)
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>
void Foam::Function1Types::Polynomial<Type>::convertTimeBase(const Time& t) void Foam::Function1Types::Polynomial<Type>::userTimeToTime(const Time& t)
{ {
forAll(coeffs_, i) forAll(coeffs_, i)
{ {

View File

@ -141,7 +141,7 @@ public:
// Member Functions // Member Functions
//- Convert time //- Convert time
virtual void convertTimeBase(const Time& t); virtual void userTimeToTime(const Time& t);
//- Return Polynomial value //- Return Polynomial value
virtual Type value(const scalar x) const; virtual Type value(const scalar x) const;

View File

@ -75,7 +75,7 @@ Foam::Function1Types::Sine<Type>::Sine(const Sine<Type>& rhs)
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>
void Foam::Function1Types::Sine<Type>::convertTimeBase(const Time& t) void Foam::Function1Types::Sine<Type>::userTimeToTime(const Time& t)
{ {
t0_ = t.timeToUserTime(t0_); t0_ = t.timeToUserTime(t0_);
} }

View File

@ -200,7 +200,7 @@ public:
// Member Functions // Member Functions
//- Convert time //- Convert time
virtual void convertTimeBase(const Time& t); virtual void userTimeToTime(const Time& t);
//- Return value for time t //- Return value for time t
virtual inline Type value(const scalar t) const virtual inline Type value(const scalar t) const

View File

@ -254,7 +254,7 @@ bool Foam::Function1Types::TableBase<Type>::checkMaxBounds
template<class Type> template<class Type>
void Foam::Function1Types::TableBase<Type>::convertTimeBase(const Time& t) void Foam::Function1Types::TableBase<Type>::userTimeToTime(const Time& t)
{ {
for (auto& item : table_) for (auto& item : table_)
{ {

View File

@ -128,7 +128,7 @@ public:
bool checkMaxBounds(const scalar x, scalar& xDash) const; bool checkMaxBounds(const scalar x, scalar& xDash) const;
//- Convert time //- Convert time
virtual void convertTimeBase(const Time& t); virtual void userTimeToTime(const Time& t);
//- Return Table value //- Return Table value
virtual Type value(const scalar x) const; virtual Type value(const scalar x) const;

View File

@ -59,7 +59,7 @@ void Foam::Function1Types::ramp::writeEntries(Ostream& os) const
} }
void Foam::Function1Types::ramp::convertTimeBase(const Time& t) void Foam::Function1Types::ramp::userTimeToTime(const Time& t)
{ {
start_ = t.timeToUserTime(start_); start_ = t.timeToUserTime(start_);
duration_ = t.timeToUserTime(duration_); duration_ = t.timeToUserTime(duration_);

View File

@ -135,7 +135,7 @@ public:
// Member Functions // Member Functions
//- Convert time //- Convert time
virtual void convertTimeBase(const Time& t); virtual void userTimeToTime(const Time& t);
//- Return value for time t //- Return value for time t
virtual scalar value(const scalar t) const = 0; virtual scalar value(const scalar t) const = 0;

View File

@ -43,7 +43,7 @@ Foam::TimeFunction1<Type>::TimeFunction1
entry_(Function1<Type>::New(entryName, dict, &runTime)) entry_(Function1<Type>::New(entryName, dict, &runTime))
{ {
// Time conversion now handled by Function1 directly // Time conversion now handled by Function1 directly
// entry_->convertTimeBase(runTime); // entry_->userTimeToTime(runTime);
} }
@ -83,7 +83,7 @@ template<class Type>
void Foam::TimeFunction1<Type>::reset(const dictionary& dict) void Foam::TimeFunction1<Type>::reset(const dictionary& dict)
{ {
entry_ = Function1<Type>::New(name_, dict, &time_); entry_ = Function1<Type>::New(name_, dict, &time_);
entry_->convertTimeBase(time_); entry_->userTimeToTime(time_);
} }

View File

@ -102,7 +102,7 @@ const Foam::Time& Foam::patchFunction1Base::time() const
} }
void Foam::patchFunction1Base::convertTimeBase(const Time& t) void Foam::patchFunction1Base::userTimeToTime(const Time& t)
{} {}

View File

@ -171,7 +171,7 @@ public:
// Manipulation // Manipulation
//- Convert time //- Convert time
virtual void convertTimeBase(const Time& t); virtual void userTimeToTime(const Time& t);
}; };