IFEM 90A354
TimeDomain.h
Go to the documentation of this file.
1// $Id$
2//==============================================================================
12//==============================================================================
13
14#ifndef _TIME_DOMAIN_H
15#define _TIME_DOMAIN_H
16
17
23{
24 double t;
25 double dt;
26 double dtn;
27 double CFL;
28 int it;
29 char first;
30
32 explicit TimeDomain(int i = 0, bool f = true) : it(i), first(f)
33 { t = dt = dtn = CFL = 0.0; }
35 explicit TimeDomain(double t0) : t(t0), it(0), first(true)
36 { dt = dtn = CFL = 0.0; }
37};
38
39#endif
Struct representing the time domain.
Definition TimeDomain.h:23
char first
If true, this is the first load/time step.
Definition TimeDomain.h:29
int it
Current iteration within current time/load step.
Definition TimeDomain.h:28
TimeDomain(double t0)
Constructor for linear problems with fixed (non-zero) time.
Definition TimeDomain.h:35
TimeDomain(int i=0, bool f=true)
Default constructor.
Definition TimeDomain.h:32
double dt
Current timestep (or load parameter) increment.
Definition TimeDomain.h:25
double t
Current time (or pseudo time, load parameter)
Definition TimeDomain.h:24
double dtn
Previous timestep (or load parameter) increment.
Definition TimeDomain.h:26
double CFL
Current CFL number (used by CFD simulators)
Definition TimeDomain.h:27