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

class Sources Sources represents a list of Source objects. More...

#include <Sources.h>

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

Public Member Functions

DoubleTab & ajouter (DoubleTab &) const
 Adds the contribution of all sources in the list to the array passed as parameter, and returns this array.
DoubleTab & calculer (DoubleTab &) const
 Calculates the contribution of all sources in the list and stores the result in the array passed as parameter,.
void contribuer_jacobienne (Matrice_Bloc &matrice, int n) const
void mettre_a_jour (double temps)
 Time update of all sources in the list.
void resetTime (double temps)
 Rest all sources to a given time See ProblemeTrio::resetTime().
void completer ()
 Calls Source::completer() on all sources in the list.
void dimensionner (Matrice_Morse &) const
 Sizing of the implicit matrix of source terms.
void contribuer_a_avec (const DoubleTab &, Matrice_Morse &) const
 Contribution to the implicit matrix of source terms. By default, no contribution.
virtual void associer_champ_rho (const Champ_base &champ_rho)
 For each source in the list, calls the associer_champ_rho method of the source.
virtual int a_pour_Champ_Fonc (const Motcle &mot, OBS_PTR(Champ_base)&ch_ref) const
 For each source in the list, calls a_pour_Champ_Fonc(mot,ch_ref).
int impr (Sortie &) const
 Calls Source::impr() on all sources in the list.
int initialiser (double temps)
 Calls Source::initialiser(temps) on all sources in the list.
void check_multiphase_compatibility () const override
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

Additional Inherited Members

Protected Member Functions inherited from MorEqn
 OBS_PTR (Equation_base) mon_equation
virtual ~MorEqn ()

Detailed Description

class Sources Sources represents a list of Source objects.

An equation contains a member Equation_base::les_sources of type
Sources. A Sources object is a piece of an equation, so this class
inherits from MorEqn.
See also
Source MorEqn

Definition at line 30 of file Sources.h.

Member Function Documentation

◆ a_pour_Champ_Fonc()

int Sources::a_pour_Champ_Fonc ( const Motcle & mot,
OBS_PTR(Champ_base)& ch_ref ) const
virtual

For each source in the list, calls a_pour_Champ_Fonc(mot,ch_ref).

This method is called by Equation_base::a_pour_Champ_Fonc.

Definition at line 154 of file Sources.cpp.

◆ ajouter()

DoubleTab & Sources::ajouter ( DoubleTab & xx) const

Adds the contribution of all sources in the list to the array passed as parameter, and returns this array.

Parameters
(DoubleTab&xx) the array in which the contribution of the source terms should be accumulated
Returns
(DoubleTab&) the modified parameter xx

Definition at line 85 of file Sources.cpp.

◆ associer_champ_rho()

void Sources::associer_champ_rho ( const Champ_base & champ_rho)
virtual

For each source in the list, calls the associer_champ_rho method of the source.

If the density is variable, the density field must be declared to the sources using this method (front-tracking) Otherwise, by default, calculations are performed with rho=1

Definition at line 139 of file Sources.cpp.

◆ calculer()

DoubleTab & Sources::calculer ( DoubleTab & xx) const

Calculates the contribution of all sources in the list and stores the result in the array passed as parameter,.

and returns this array.

Parameters
(DoubleTab&xx) the array in which the sum of source contributions should be stored
Returns
(DoubleTab&) the modified parameter xx

Definition at line 98 of file Sources.cpp.

◆ check_multiphase_compatibility()

void Sources::check_multiphase_compatibility ( ) const
overridevirtual

Reimplemented from MorEqn.

Definition at line 234 of file Sources.cpp.

◆ completer()

void Sources::completer ( )

Calls Source::completer() on all sources in the list.

See Source_base::completer().

Definition at line 127 of file Sources.cpp.

◆ contribuer_a_avec()

void Sources::contribuer_a_avec ( const DoubleTab & a,
Matrice_Morse & matrice ) const

Contribution to the implicit matrix of source terms. By default, no contribution.

Definition at line 201 of file Sources.cpp.

◆ contribuer_jacobienne()

void Sources::contribuer_jacobienne ( Matrice_Bloc & matrice,
int n ) const

Definition at line 211 of file Sources.cpp.

◆ dimensionner()

void Sources::dimensionner ( Matrice_Morse & matrice) const

Sizing of the implicit matrix of source terms.

Traverses all sources in the list to size the matrix.

Definition at line 187 of file Sources.cpp.

◆ impr()

int Sources::impr ( Sortie & os) const

Calls Source::impr() on all sources in the list.

See Source_base::impr().

Definition at line 176 of file Sources.cpp.

◆ initialiser()

int Sources::initialiser ( double temps)

Calls Source::initialiser(temps) on all sources in the list.

See Source_base::initialiser(double temps).

Definition at line 226 of file Sources.cpp.

◆ mettre_a_jour()

void Sources::mettre_a_jour ( double temps)

Time update of all sources in the list.

Parameters
(doubletemps) the time step for update

Definition at line 109 of file Sources.cpp.

◆ resetTime()

void Sources::resetTime ( double temps)

Rest all sources to a given time See ProblemeTrio::resetTime().

Definition at line 117 of file Sources.cpp.


The documentation for this class was generated from the following files:
  • /home/docs/trust-code/src/Kernel/Framework/Sources.h
  • /home/docs/trust-code/src/Kernel/Framework/Sources.cpp