TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Operateur_Grad Class Reference

Classe Operateur_Grad Generic class of the hierarchy of operators computing the gradient. More...

#include <Operateur_Grad.h>

Inheritance diagram for Operateur_Grad:
[legend]
Collaboration diagram for Operateur_Grad:
[legend]

Public Member Functions

Operateur_basel_op_base () override
 Returns the underlying object upcast to Operateur_base.
const Operateur_basel_op_base () const override
 Returns the underlying object upcast to Operateur_base (const version).
DoubleTab & ajouter (const DoubleTab &, DoubleTab &) const override
 Adds the contribution of the operator to the array passed as parameter.
DoubleTab & calculer (const DoubleTab &, DoubleTab &) const override
 Initializes the array passed as parameter with the contribution of the operator.
void typer () override
 Types the operator: types as "Op_Grad_"+discretisation()+.
void typer_direct (const Nom &)
int op_non_nul () const override
Public Member Functions inherited from Operateur
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 Nomtype () 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 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_basemon_inconnue () const
 Returns the field representing the unknown of the equation to which the operator belongs.
const Discretisation_basediscretisation () 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.
Sortieecrire (Sortie &) const
Entreelire (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)
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_baseequation () const
 Returns the reference to the equation pointed to by MorEqn::mon_equation.
Equation_baseequation ()
 Returns the reference to the equation pointed to by MorEqn::mon_equation.
int mon_equation_non_nul () const
virtual void check_multiphase_compatibility () const

Additional Inherited Members

Protected Member Functions inherited from Operateur
 OBS_PTR (Champ_Inc_base) le_champ_inco
Protected Member Functions inherited from MorEqn
 OBS_PTR (Equation_base) mon_equation
virtual ~MorEqn ()
Protected Attributes inherited from Operateur
std::string nom_inco_
Motcle typ

Detailed Description

Classe Operateur_Grad Generic class of the hierarchy of operators computing the gradient.

of a field. An Operateur_Grad object can reference any object derived from Operateur_Grad_base.

See also
Operateur_Grad_base Operateur

Definition at line 30 of file Operateur_Grad.h.

Member Function Documentation

◆ ajouter()

DoubleTab & Operateur_Grad::ajouter ( const DoubleTab & donnee,
DoubleTab & resu ) const
overridevirtual

Adds the contribution of the operator to the array passed as parameter.

Parameters
(DoubleTab&donnee) array containing the data on which the operator is applied.
(DoubleTab&resu) array to which the contribution of the operator is added
Returns
(DoubleTab&) the array containing the result

Implements Operateur.

Definition at line 59 of file Operateur_Grad.cpp.

◆ calculer()

DoubleTab & Operateur_Grad::calculer ( const DoubleTab & donnee,
DoubleTab & resu ) const
overridevirtual

Initializes the array passed as parameter with the contribution of the operator.

Parameters
(DoubleTab&donnee) array containing the data on which the operator is applied.
(DoubleTab&resu) array in which the contribution of the operator is stored
Returns
(DoubleTab&) the array containing the result

Implements Operateur.

Definition at line 75 of file Operateur_Grad.cpp.

◆ l_op_base() [1/2]

const Operateur_base & Operateur_Grad::l_op_base ( ) const
inlineoverridevirtual

Returns the underlying object upcast to Operateur_base (const version).

Returns
(Operateur_base&) the underlying object upcast to Operateur_base

Implements Operateur.

Definition at line 57 of file Operateur_Grad.h.

◆ l_op_base() [2/2]

Operateur_base & Operateur_Grad::l_op_base ( )
inlineoverridevirtual

Returns the underlying object upcast to Operateur_base.

Returns
(Operateur_base&) the underlying object upcast to Operateur_base

Implements Operateur.

Definition at line 49 of file Operateur_Grad.h.

◆ op_non_nul()

int Operateur_Grad::op_non_nul ( ) const
inlineoverridevirtual

Implements Operateur.

Definition at line 62 of file Operateur_Grad.h.

◆ typer()

void Operateur_Grad::typer ( )
overridevirtual

Types the operator: types as "Op_Grad_"+discretisation()+.

"_"+inconnue().suffix

Implements Operateur.

Definition at line 38 of file Operateur_Grad.cpp.

◆ typer_direct()

void Operateur_Grad::typer_direct ( const Nom & un_type)

Definition at line 48 of file Operateur_Grad.cpp.


The documentation for this class was generated from the following files: