|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--opale.tools.OpaleObject
|
+--opale.ode.ObjectODE
|
+--opale.ode.TimeScheme
Abstract class to represent a time scheme. One method must be definined in the sub classes : the method void forward(Equation eq) that defines the time scheme.
| Constructor Summary | |
TimeScheme()
|
|
| Method Summary | |
double |
dt()
Get the current time step. |
void |
dt(double dt)
Set the current time step. |
double |
dtmax()
Get the maximum value for the first step dt. |
void |
dtmax(double dtm)
Set the maximum value for the first step dt. |
double |
dtmin()
Get the minimum value for the first step dt. |
void |
dtmin(double dtm)
Set the minimum value for the first step dt. |
abstract void |
forward(Equation eq)
This method is abstract. |
int |
getNstep()
get the number of time step. |
Problem |
getPb()
Get the problem for this time scheme. |
void |
init()
Initialize the resolution (memory allocation, time step computing ...). |
DVect |
present()
Get the present unknown. |
int |
readKeyWord(java.lang.String word,
java.io.StreamTokenizer f,
OpaleSet ode)
Abstract method to read a key word in a file '*.ode'. |
void |
set(double t0,
double t1)
Set the time interval for the study. |
void |
setNstep(int n)
Set the number of time step. |
void |
setPb(Problem pb)
Associated a problem to tis Time scheme. |
void |
setStepsizeControl(StepsizeControl s)
Set a step control method. |
double |
time()
Returns the current time.. |
double |
tmax()
Returns final time. |
double |
tmin()
Returns the initial time. |
boolean |
update()
Met à jour le calcul (incrémente le pas de temps, stocke les inconnues...). |
void |
write(java.io.PrintWriter f,
OpaleSet ode)
Abstrcat method to write the current object in a stream. |
| Methods inherited from class opale.tools.OpaleObject |
clone, getId, read, setId |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TimeScheme()
| Method Detail |
public abstract void forward(Equation eq)
present()). A l'entrée dans cette méthode pour le calcul du temps n, la méthode present() renvoie l'inconnue au temps n juste précédent.Equation, - a equation.public final DVect present()
WARNING : the returned instance of DVect contains :
public final void set(double t0,
double t1)
double - t0, initial time.double - t1, final time.public final void setNstep(int n)
int - n, number of time step.public final int getNstep()
public final void setPb(Problem pb)
Problem, - a problem.public final Problem getPb()
public final void setStepsizeControl(StepsizeControl s)
StepsizeControl. - public final double tmin()
public final double tmax()
public final double dtmax()
public final double dtmin()
public final void dtmax(double dtm)
double, - the maximum value.public final void dtmin(double dtm)
double, - the minimum value.public final double dt()
public final void dt(double dt)
double, - the time step.public final double time()
public void init()
public boolean update()
public int readKeyWord(java.lang.String word,
java.io.StreamTokenizer f,
OpaleSet ode)
throws java.io.IOException,
InvalidFormatException
OpaleObjectreadKeyWord in class OpaleObjectopale.tools.OpaleObjectString - s, key word to read.StreamTokenizer - f, stream to read.OpaleSet - session, the group of 'Opale' object
public void write(java.io.PrintWriter f,
OpaleSet ode)
OpaleObjectwrite in class OpaleObjectopale.tools.OpaleObjectprintWriter - f, a stream.OpaleSet - session, the set of 'Opale' object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||