20 #include "system_of_eqs.hpp"
23 #include "tensor_impl.hpp"
27 Equation(zedom, dd, 2, nused, pused), bound(bb), other_dom(other_dd), other_bound(other_bb) {
37 assert (residus[conte]->get_type_data()==TERM_T) ;
38 assert (residus[conte+1]->get_type_data()==TERM_T) ;
47 for (
int i =start ; i<pos_res ; i++)
48 sec.
set(i) -= auxi(i-start) ;
54 assert (residus[conte]->get_type_data()==TERM_T) ;
55 assert (residus[conte+1]->get_type_data()==TERM_T) ;
63 for (
int i =start ; i<pos_res ; i++)
64 sec.
set(i) -= auxi(i-start) ;
reference set(const Index &pos)
Read/write of an element.
Abstract class that implements the fonctionnalities common to all the type of domains.
virtual Array< int > nbr_conditions_boundary_one_side(const Tensor &eq, int dom, int bound, int n_cmp=-1, Array< int > **p_cmp=0x0) const
Computes number of discretized equations associated with a given tensorial equation on a boundary.
virtual void export_tau_boundary_one_side(const Tensor &eq, int dom, int bound, Array< double > &res, int &pos_res, const Array< int > &ncond, int n_cmp=-1, Array< int > **p_cmp=0x0) const
Exports all the residual equations corresponding to one tensorial one on a given boundary.
void export_der(int &, Term_eq **, Array< double > &, int &) const override
Generates the discretized variations, from the various Term_eq computed by the equation.
Eq_matching_one_side(const Domain *dom, int nd, int bb, int oz_nd, int oz_bb, Ope_eq *ope, Ope_eq *oz_ope, int n_cmp=-1, Array< int > **p_cmp=nullptr)
Constructor.
virtual ~Eq_matching_one_side()
Destructor.
void export_val(int &, Term_eq **, Array< double > &, int &) const override
Generates the discretized errors, from the various Term_eq computed by the equation.
bool take_into_account(int) const override
Check whether the variation of the residual has to be taken into account when computing a given colum...
int other_dom
Number of the other domain.
Array< int > do_nbr_conditions(const Tensor &tt) const override
Computes the number of conditions associated with the equation.
int other_bound
Name of the boundary in the other domain.
int bound
Name of the boundary in the domain of the equation.
Class implementing an equation.
const Domain * dom
Pointer on the Domain where the equation is defined.
Array< int > ** p_cmp_used
Array of pointer on the indices of the used components.
int ndom
Number of the domain.
int n_cmp_used
Number of components used (by default the same thing as n_comp).
Array< int > * n_cond
Number of discretized equations, component by component.
MMPtr_array< Ope_eq > parts
Array of pointers on the various terms.
Abstract class that describes the various operators that can appear in the equations.
const Domain * get_domain(int i) const
returns a pointer on the domain.
const Space & get_space() const
Returns the Space.
This class is intended to describe the manage objects appearing in the equations.
Tensor const & get_val_t() const