|
TrioCFD 1.9.9_beta
TrioCFD documentation
|
class Operateur Generic class of the operator hierarchy. More...
#include <Operateur.h>
Public Member Functions | |
| virtual Operateur_base & | l_op_base ()=0 |
| virtual const Operateur_base & | l_op_base () const =0 |
| virtual DoubleTab & | ajouter (const DoubleTab &, DoubleTab &) const =0 |
| virtual DoubleTab & | calculer (const DoubleTab &, DoubleTab &) const =0 |
| DoubleTab & | ajouter (const Champ_Inc_base &, DoubleTab &) const |
| Computes and adds the contribution of the operator to the right-hand side of the equation. | |
| DoubleTab & | calculer (const Champ_Inc_base &, DoubleTab &) const |
| Computes the contribution of the operator and returns the array of values. | |
| DoubleTab & | ajouter (DoubleTab &) const |
| Adds the contribution of the operator to the array passed as parameter. | |
| DoubleTab & | calculer (DoubleTab &) const |
| Applies the operator to the unknown field and returns the result. | |
| const Nom & | type () const |
| Returns the (name of the) type of operator to create. | |
| double | calculer_pas_de_temps () const |
| Computes the next time step. | |
| void | calculer_pas_de_temps_locaux (DoubleTab &) const |
| Calculate the next local time steps. | |
| int | impr (Sortie &os) const |
| Prints the operator to an output stream unconditionally. | |
| virtual void | typer ()=0 |
| virtual void | completer () |
| Updates the references of the objects associated with the operator. | |
| virtual void | mettre_a_jour (double temps) |
| Performs a time update of the operator. | |
| const Champ_Inc_base & | mon_inconnue () const |
| Returns the field representing the unknown of the equation to which the operator belongs. | |
| const Discretisation_base & | discretisation () const |
| Returns the discretization of the equation to which the operator belongs. | |
| int | limpr () const |
| Asks the equation whether printing is needed. Returns 1 for YES, 0 otherwise. | |
| void | imprimer (Sortie &os) const |
| Prints the operator to an output stream, if necessary. | |
| Sortie & | ecrire (Sortie &) const |
| Entree & | lire (Entree &) |
| Reads an operator from an input stream. | |
| void | ajouter_contribution_explicite_au_second_membre (const Champ_Inc_base &inconnue, DoubleTab &derivee) const |
| void | associer_champ (const Champ_Inc_base &, const std::string &nom_ch) |
| void | set_fichier (const Nom &nom) |
| void | set_description (const Nom &nom) |
| virtual int | op_non_nul () const =0 |
| Public Member Functions inherited from MorEqn | |
| void | associer_eqn (const Equation_base &) |
| Associates an equation with the object. | |
| virtual void | calculer_pour_post (Champ_base &espace_stockage, const Nom &option, int comp) const |
| virtual Motcle | get_localisation_pour_post (const Nom &option) const |
| const Equation_base & | equation () const |
| Returns the reference to the equation pointed to by MorEqn::mon_equation. | |
| Equation_base & | equation () |
| Returns the reference to the equation pointed to by MorEqn::mon_equation. | |
| int | mon_equation_non_nul () const |
| virtual void | check_multiphase_compatibility () const |
Protected Member Functions | |
| OBS_PTR (Champ_Inc_base) le_champ_inco | |
| Protected Member Functions inherited from MorEqn | |
| OBS_PTR (Equation_base) mon_equation | |
| virtual | ~MorEqn () |
Protected Attributes | |
| std::string | nom_inco_ |
| Motcle | typ |
class Operateur Generic class of the operator hierarchy.
This generic class is special because it does NOT INHERIT from OWN_PTR(Operateur_base) but from MorEqn. A reference to an Operateur_base is returned by the method Operateur::l_op_base() which is pure virtual and must be overridden in derived classes.
Definition at line 38 of file Operateur.h.
| DoubleTab & Operateur::ajouter | ( | const Champ_Inc_base & | ch, |
| DoubleTab & | resu ) const |
Computes and adds the contribution of the operator to the right-hand side of the equation.
Calls Operateur::ajouter(const DoubleTab&, DoubleTab& )
| (Champ_Inc_base& | ch) the unknown field on which the operator acts | |
| [in,out] | (DoubleTab& | resu) the array storing the right-hand side values to which the operator contribution is added |
Definition at line 231 of file Operateur.cpp.
|
pure virtual |
| DoubleTab & Operateur::ajouter | ( | DoubleTab & | resu | ) | const |
Adds the contribution of the operator to the array passed as parameter.
Calls Operateur::ajouter(const Champ_Inc_base&, DoubleTab& )
| (DoubleTab& | resu) the array storing the right-hand side values to which the operator contribution is added |
Definition at line 283 of file Operateur.cpp.
| void Operateur::ajouter_contribution_explicite_au_second_membre | ( | const Champ_Inc_base & | inconnue, |
| DoubleTab & | derivee ) const |
Definition at line 311 of file Operateur.cpp.
| void Operateur::associer_champ | ( | const Champ_Inc_base & | ch, |
| const std::string & | nom_ch ) |
Definition at line 152 of file Operateur.cpp.
| DoubleTab & Operateur::calculer | ( | const Champ_Inc_base & | ch, |
| DoubleTab & | resu ) const |
Computes the contribution of the operator and returns the array of values.
| (Champ_Inc_base& | ch) the unknown field on which the operator acts |
| (DoubleTab& | resu) the array storing the values resulting from applying the operator to the unknown field. |
Definition at line 271 of file Operateur.cpp.
|
pure virtual |
| DoubleTab & Operateur::calculer | ( | DoubleTab & | resu | ) | const |
Applies the operator to the unknown field and returns the result.
Calls Operateur::calculer(const Champ_Inc_base&, DoubleTab& );
| (DoubleTab& | resu) the array storing the values resulting from applying the operator to the unknown field. |
Definition at line 295 of file Operateur.cpp.
| double Operateur::calculer_pas_de_temps | ( | ) | const |
Computes the next time step.
Definition at line 172 of file Operateur.cpp.
| void Operateur::calculer_pas_de_temps_locaux | ( | DoubleTab & | dt_locaux | ) | const |
Calculate the next local time steps.
Definition at line 187 of file Operateur.cpp.
|
virtual |
Updates the references of the objects associated with the operator.
Operateur::le_champ_inco, Operateur::champ_inco Calls Operateur_base::completer()
Reimplemented in Op_Diff_Fluctu_Temp, and Op_Diff_Flux_Chaleur_Turb.
Definition at line 144 of file Operateur.cpp.
| const Discretisation_base & Operateur::discretisation | ( | ) | const |
Returns the discretization of the equation to which the operator belongs.
Definition at line 133 of file Operateur.cpp.
Definition at line 24 of file Operateur.cpp.
| int Operateur::impr | ( | Sortie & | os | ) | const |
Prints the operator to an output stream unconditionally.
| (Sortie& | os) the output stream for printing |
Definition at line 217 of file Operateur.cpp.
| void Operateur::imprimer | ( | Sortie & | os | ) | const |
Prints the operator to an output stream, if necessary.
(see Schema_Temp_base::limpr())
| (Sortie& | os) the output stream for printing |
Definition at line 206 of file Operateur.cpp.
|
pure virtual |
|
pure virtual |
| int Operateur::limpr | ( | ) | const |
Asks the equation whether printing is needed. Returns 1 for YES, 0 otherwise.
Definition at line 195 of file Operateur.cpp.
Reads an operator from an input stream.
Types the operator and associates its equation with it. Format: { [A KEYWORD REPRESENTING A TYPE] }
| (Entree& | is) the input stream from which to read the operator |
| opening | brace expected |
| closing | brace expected |
Definition at line 44 of file Operateur.cpp.
|
virtual |
Performs a time update of the operator.
Calls Operateur_base::mettre_a_jour(double)
| (double | temps) the time step for update |
Definition at line 165 of file Operateur.cpp.
| const Champ_Inc_base & Operateur::mon_inconnue | ( | ) | const |
Returns the field representing the unknown of the equation to which the operator belongs.
Definition at line 124 of file Operateur.cpp.
|
protected |
|
pure virtual |
| void Operateur::set_description | ( | const Nom & | nom | ) |
Definition at line 306 of file Operateur.cpp.
| void Operateur::set_fichier | ( | const Nom & | nom | ) |
Definition at line 301 of file Operateur.cpp.
| const Nom & Operateur::type | ( | ) | const |
Returns the (name of the) type of operator to create.
Definition at line 259 of file Operateur.cpp.
|
pure virtual |
|
protected |
Definition at line 74 of file Operateur.h.
|
protected |
Definition at line 76 of file Operateur.h.