KADATH
Kadath::Eq_matching_non_std Class Reference

Class for an equation representing the matching of quantities accross a boundary. More...

#include <system_of_eqs.hpp>

Inheritance diagram for Kadath::Eq_matching_non_std:
Kadath::Equation

Public Member Functions

 Eq_matching_non_std (const Domain *dom, int nd, int bb, const Array< int > &ozers, int n_cmp=-1, Array< int > **p_cmp=nullptr)
 Constructor. More...
 
virtual ~Eq_matching_non_std ()
 Destructor. More...
 
void apply (int &, Term_eq **) override
 Computes the terms involved in computing the residual of the equations. More...
 
void export_val (int &, Term_eq **, Array< double > &, int &) const override
 Generates the discretized errors, from the various Term_eq computed by the equation. More...
 
void export_der (int &, Term_eq **, Array< double > &, int &) const override
 Generates the discretized variations, from the various Term_eq computed by the equation. More...
 
void do_which_points (const Base_spectral &base, int start)
 Computes the collocation points used. More...
 
Array< int > do_nbr_conditions (const Tensor &tt) const override
 Computes the number of conditions associated with the equation. More...
 
bool take_into_account (int) const override
 Check whether the variation of the residual has to be taken into account when computing a given column. More...
 
int get_n_cond_tot () const
 

Public Attributes

int bound
 Name of the boundary in the domain of the equation. More...
 
Array< int > other_doms
 Array containing the number of the domains being on the other side of the surface. More...
 
Array< int > other_bounds
 Names of the boundary, as seen in the other domains. More...
 
Index ** which_points
 Lists the collocation points on the boundary (probably...) More...
 

Protected Attributes

const Domaindom
 Pointer on the Domain where the equation is defined. More...
 
int ndom
 Number of the domain. More...
 
int n_ope
 Number of terms involved in the equation (one for bulk, two or more fot matching...). More...
 
MMPtr_array< Ope_eqparts
 Array of pointers on the various terms. More...
 
bool called
 Indicator checking whther the result has been computed already once. More...
 
int n_comp
 Number of components of the residual (1 for a scalar, 6 for a symmetric rank-2 tensor etc). More...
 
int n_cond_tot
 Total number of discretized equations (essentially the number of all coefficients of the residual). More...
 
Array< int > * n_cond
 Number of discretized equations, component by component. More...
 
int n_cmp_used
 Number of components used (by default the same thing as n_comp). More...
 
Array< int > ** p_cmp_used
 Array of pointer on the indices of the used components. More...
 

Friends

class System_of_eqs
 

Detailed Description

Class for an equation representing the matching of quantities accross a boundary.

The matching is performed in the configuration space. It is intended where the collocations points are different at each side of the boundary. It can happen when there are more than one touching domain (bispheric vs spheric) and when the number of points is different.

Definition at line 1343 of file system_of_eqs.hpp.

Constructor & Destructor Documentation

◆ Eq_matching_non_std()

Kadath::Eq_matching_non_std::Eq_matching_non_std ( const Domain dom,
int  nd,
int  bb,
const Array< int > &  ozers,
int  n_cmp = -1,
Array< int > **  p_cmp = nullptr 
)

Constructor.

Parameters
dom: Pointer on the Domain
nd: number of the Domain (consistence is not checked).
bb: name of the boundary in the domain of the equation.
ozers: numbers of the others domains in (0,*) and names of the boundary as seen on the other side in (1,*).
n_cmp: number of components of eq to be considered. All the components are used of it is -1.
p_cmp: pointer on the indexes of the components to be considered. Not used of nused = -1 .

Definition at line 25 of file eq_matching_non_std.cpp.

References Kadath::Equation::n_ope, other_bounds, other_doms, and Kadath::Array< T >::set().

◆ ~Eq_matching_non_std()

Kadath::Eq_matching_non_std::~Eq_matching_non_std ( )
virtual

Destructor.

Definition at line 35 of file eq_matching_non_std.cpp.

References Kadath::Equation::called, Kadath::Equation::n_cond_tot, and which_points.

Member Function Documentation

◆ apply()

void Kadath::Eq_matching_non_std::apply ( int &  conte,
Term_eq **  res 
)
overridevirtual

Computes the terms involved in computing the residual of the equations.

Parameters
conte: current position in the array of terms.
res: array of pointers on the various terms.

Reimplemented from Kadath::Equation.

Definition at line 289 of file eq_matching_non_std.cpp.

References Kadath::Equation::called, do_nbr_conditions(), do_which_points(), Kadath::Array< T >::get_size(), Kadath::Tensor::indices(), Kadath::Equation::n_cmp_used, Kadath::Equation::n_comp, Kadath::Equation::n_cond, Kadath::Equation::n_cond_tot, Kadath::Equation::n_ope, Kadath::Equation::ndom, Kadath::Equation::p_cmp_used, Kadath::Equation::parts, and which_points.

◆ do_nbr_conditions()

Array< int > Kadath::Eq_matching_non_std::do_nbr_conditions ( const Tensor tt) const
overridevirtual

Computes the number of conditions associated with the equation.

Parameters
tt: the residual of the equation.

Implements Kadath::Equation.

Definition at line 43 of file eq_matching_non_std.cpp.

References bound, Kadath::Tensor::cmp, Kadath::Equation::dom, Kadath::Tensor::get_n_comp(), Kadath::Equation::n_cmp_used, Kadath::Domain::nbr_points_boundary(), Kadath::Equation::ndom, Kadath::Equation::p_cmp_used, and Kadath::Array< T >::set().

◆ do_which_points()

void Kadath::Eq_matching_non_std::do_which_points ( const Base_spectral base,
int  start 
)

Computes the collocation points used.

Parameters
base: the spectral base of the residual (in order to get the symmetries).
start: starting index

Definition at line 58 of file eq_matching_non_std.cpp.

References bound, Kadath::Domain::do_which_points_boundary(), Kadath::Equation::dom, and which_points.

◆ export_der()

void Kadath::Eq_matching_non_std::export_der ( int &  conte,
Term_eq **  residuals,
Array< double > &  sec,
int &  pos_sec 
) const
overridevirtual

◆ export_val()

void Kadath::Eq_matching_non_std::export_val ( int &  conte,
Term_eq **  residuals,
Array< double > &  sec,
int &  pos_sec 
) const
overridevirtual

◆ get_n_cond_tot()

int Kadath::Equation::get_n_cond_tot ( ) const
inlineinherited
Returns
the total number of discretized conditions.

Definition at line 1095 of file system_of_eqs.hpp.

References Kadath::Equation::n_cond_tot.

◆ take_into_account()

bool Kadath::Eq_matching_non_std::take_into_account ( int  target) const
overridevirtual

Check whether the variation of the residual has to be taken into account when computing a given column.

Parameters
target: domain involved in the computation of the given column.

Implements Kadath::Equation.

Definition at line 281 of file eq_matching_non_std.cpp.

References Kadath::Equation::n_ope, Kadath::Equation::ndom, and other_doms.

Member Data Documentation

◆ bound

int Kadath::Eq_matching_non_std::bound

Name of the boundary in the domain of the equation.

Definition at line 1346 of file system_of_eqs.hpp.

◆ called

bool Kadath::Equation::called
protectedinherited

Indicator checking whther the result has been computed already once.

If not the quantities n_cond must be computed.

Definition at line 1070 of file system_of_eqs.hpp.

◆ dom

const Domain* Kadath::Equation::dom
protectedinherited

Pointer on the Domain where the equation is defined.

Definition at line 1061 of file system_of_eqs.hpp.

◆ n_cmp_used

int Kadath::Equation::n_cmp_used
protectedinherited

Number of components used (by default the same thing as n_comp).

Definition at line 1075 of file system_of_eqs.hpp.

◆ n_comp

int Kadath::Equation::n_comp
protectedinherited

Number of components of the residual (1 for a scalar, 6 for a symmetric rank-2 tensor etc).

Definition at line 1071 of file system_of_eqs.hpp.

◆ n_cond

Array<int>* Kadath::Equation::n_cond
protectedinherited

Number of discretized equations, component by component.

Definition at line 1073 of file system_of_eqs.hpp.

◆ n_cond_tot

int Kadath::Equation::n_cond_tot
protectedinherited

Total number of discretized equations (essentially the number of all coefficients of the residual).

Definition at line 1072 of file system_of_eqs.hpp.

◆ n_ope

int Kadath::Equation::n_ope
protectedinherited

Number of terms involved in the equation (one for bulk, two or more fot matching...).

Definition at line 1063 of file system_of_eqs.hpp.

◆ ndom

int Kadath::Equation::ndom
protectedinherited

Number of the domain.

Definition at line 1062 of file system_of_eqs.hpp.

◆ other_bounds

Array<int> Kadath::Eq_matching_non_std::other_bounds

Names of the boundary, as seen in the other domains.

Definition at line 1348 of file system_of_eqs.hpp.

◆ other_doms

Array<int> Kadath::Eq_matching_non_std::other_doms

Array containing the number of the domains being on the other side of the surface.

Definition at line 1347 of file system_of_eqs.hpp.

◆ p_cmp_used

Array<int>** Kadath::Equation::p_cmp_used
protectedinherited

Array of pointer on the indices of the used components.

Definition at line 1076 of file system_of_eqs.hpp.

◆ parts

MMPtr_array<Ope_eq> Kadath::Equation::parts
protectedinherited

Array of pointers on the various terms.

Definition at line 1064 of file system_of_eqs.hpp.

◆ which_points

Index** Kadath::Eq_matching_non_std::which_points

Lists the collocation points on the boundary (probably...)

Definition at line 1350 of file system_of_eqs.hpp.


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