KADATH
|
Class for a matching condition. More...
#include <system_of_eqs.hpp>
Public Member Functions | |
Eq_matching_order_array (const Domain *dom, int nd, int bb, int oz_nd, int oz_bb, const Array< int > &ord, Ope_eq *ope, Ope_eq *oz_ope, int n_cmp=-1, Array< int > **p_cmp=nullptr) | |
Constructor. More... | |
virtual | ~Eq_matching_order_array () |
Destructor. 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... | |
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 |
virtual void | apply (int &conte, Term_eq **res) |
Computes the terms involved in computing the residual of the equations. More... | |
Public Attributes | |
int | bound |
The boundary. More... | |
int | other_dom |
Number of the Domain on the other side of the boundary. More... | |
int | other_bound |
Name of the boundary as seen from the other domain. More... | |
const Array< int > & | order |
Orders of the equation wrt each variable. More... | |
Protected Attributes | |
const Domain * | dom |
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_eq > | parts |
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... | |
Class for a matching condition.
The order is specified for each variable. The one corresponding to the boundary is irrelevant.
Definition at line 1557 of file system_of_eqs.hpp.
Kadath::Eq_matching_order_array::Eq_matching_order_array | ( | const Domain * | dom, |
int | nd, | ||
int | bb, | ||
int | oz_nd, | ||
int | oz_bb, | ||
const Array< int > & | ord, | ||
Ope_eq * | ope, | ||
Ope_eq * | oz_ope, | ||
int | n_cmp = -1 , |
||
Array< int > ** | p_cmp = nullptr |
||
) |
Constructor.
dom | : Pointer on the Domain |
nd | : number of the Domain (consistence is not checked). |
bb | : the boundary. |
oz_nd | : number of the Domain on the other side of the boundary. |
oz_bb | : the boundary. |
ord | : orders of the equation wrt each variable. |
ope | : pointer on the operator. |
oz_ope | : pointer on the operator from the other domain. |
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_order_array.cpp.
References Kadath::Equation::parts.
|
virtual |
Destructor.
Definition at line 32 of file eq_matching_order_array.cpp.
|
virtualinherited |
Computes the terms involved in computing the residual of the equations.
conte | : current position in the array of terms. |
res | : array of pointers on the various terms. |
Reimplemented in Kadath::Eq_matching_non_std.
Definition at line 49 of file equation.cpp.
References Kadath::Equation::called, Kadath::Equation::do_nbr_conditions(), Kadath::Array< T >::get_size(), Kadath::Equation::n_comp, Kadath::Equation::n_cond, Kadath::Equation::n_cond_tot, Kadath::Equation::n_ope, and Kadath::Equation::parts.
|
overridevirtual |
Computes the number of conditions associated with the equation.
tt | : the residual of the equation. |
Implements Kadath::Equation.
Definition at line 71 of file eq_matching_order_array.cpp.
References bound, Kadath::Equation::dom, Kadath::Equation::n_cmp_used, Kadath::Domain::nbr_conditions_boundary_array(), Kadath::Equation::ndom, order, and Kadath::Equation::p_cmp_used.
|
overridevirtual |
Generates the discretized variations, from the various Term_eq
computed by the equation.
Basically used when computing the Jacobian of the Newton-Raphson algorithm.
conte | : current position in the array of terms. |
residuals | : array of pointers on the various terms. |
sec | : array of the discretized errors. |
pos_sec | : current position in sec . |
Implements Kadath::Equation.
Definition at line 55 of file eq_matching_order_array.cpp.
References bound, Kadath::Equation::dom, Kadath::Domain::export_tau_boundary_array(), Kadath::Space::get_domain(), Kadath::Tensor::get_space(), Kadath::Term_eq::get_val_t(), Kadath::Equation::n_cmp_used, Kadath::Equation::n_cond, Kadath::Equation::ndom, order, other_bound, other_dom, Kadath::Equation::p_cmp_used, and Kadath::Array< T >::set().
|
overridevirtual |
Generates the discretized errors, from the various Term_eq
computed by the equation.
Basically used when computing the second member of the Newton-Raphson algorithm.
conte | : current position in the array of terms. |
residuals | : array of pointers on the various terms. |
sec | : array of the discretized errors. |
pos_sec | : current position in sec . |
Implements Kadath::Equation.
Definition at line 35 of file eq_matching_order_array.cpp.
References bound, Kadath::Equation::dom, Kadath::Domain::export_tau_boundary_array(), Kadath::Space::get_domain(), Kadath::Tensor::get_space(), Kadath::Term_eq::get_val_t(), Kadath::Equation::n_cmp_used, Kadath::Equation::n_cond, Kadath::Equation::ndom, order, other_bound, other_dom, Kadath::Equation::p_cmp_used, and Kadath::Array< T >::set().
|
inlineinherited |
Definition at line 1095 of file system_of_eqs.hpp.
References Kadath::Equation::n_cond_tot.
|
overridevirtual |
Check whether the variation of the residual has to be taken into account when computing a given column.
target | : domain involved in the computation of the given column. |
Implements Kadath::Equation.
Definition at line 76 of file eq_matching_order_array.cpp.
References Kadath::Equation::ndom, and other_dom.
int Kadath::Eq_matching_order_array::bound |
The boundary.
Definition at line 1560 of file system_of_eqs.hpp.
|
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.
|
protectedinherited |
Pointer on the Domain
where the equation is defined.
Definition at line 1061 of file system_of_eqs.hpp.
|
protectedinherited |
Number of components used (by default the same thing as n_comp
).
Definition at line 1075 of file system_of_eqs.hpp.
|
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.
|
protectedinherited |
Number of discretized equations, component by component.
Definition at line 1073 of file system_of_eqs.hpp.
|
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.
|
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.
|
protectedinherited |
Number of the domain.
Definition at line 1062 of file system_of_eqs.hpp.
const Array<int>& Kadath::Eq_matching_order_array::order |
Orders of the equation wrt each variable.
Definition at line 1563 of file system_of_eqs.hpp.
int Kadath::Eq_matching_order_array::other_bound |
Name of the boundary as seen from the other domain.
Definition at line 1562 of file system_of_eqs.hpp.
int Kadath::Eq_matching_order_array::other_dom |
Number of the Domain
on the other side of the boundary.
Definition at line 1561 of file system_of_eqs.hpp.
|
protectedinherited |
Array of pointer on the indices of the used components.
Definition at line 1076 of file system_of_eqs.hpp.
|
protectedinherited |
Array of pointers on the various terms.
Definition at line 1064 of file system_of_eqs.hpp.