20 #include "headcpp.hpp"
21 #include "adapted.hpp"
23 #include "array_math.hpp"
25 #include "tensor_impl.hpp"
35 int kmin = 2*mlim + 2 ;
55 pos_galerkin = pos_cf ;
56 pos_galerkin.
set(1) = 0 ;
70 pos_galerkin = pos_cf ;
71 pos_galerkin.
set(1) = 0 ;
85 pos_galerkin = pos_cf ;
86 pos_galerkin.
set(1) = 1 ;
102 pos_galerkin = pos_cf ;
103 pos_galerkin.
set(1) = 0 ;
112 cerr <<
"Unknow theta basis in Domain_shell_outer_adapted::export_tau_val_domain_boundary" << endl ;
124 if ((bound!=INNER_BC) && (bound!=OUTER_BC)) {
125 cerr <<
"Unknown boundary in Domain_shell_outer_adapted::export_tau_boundary" << endl ;
146 else for (
int i=0 ; i<n_cmp ; i++) {
147 if ((*p_cmp[i])(0)==1)
149 if ((*p_cmp[i])(0)==2)
151 if ((*p_cmp[i])(0)==3)
163 else for (
int i=0 ; i<n_cmp ; i++) {
164 if ((*p_cmp[i])(0)==1)
166 if ((*p_cmp[i])(0)==2)
168 if ((*p_cmp[i])(0)==3)
174 cerr <<
"Unknown type of vector Domain_shell_outer_adapted::export_tau_boundary" << endl ;
191 else for (
int i=0 ; i<n_cmp ; i++) {
192 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
194 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
196 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
198 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
200 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
202 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
221 else for (
int i=0 ; i<n_cmp ; i++) {
222 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
224 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
226 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
228 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==1))
230 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
232 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
234 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==1))
236 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==2))
238 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
253 else for (
int i=0 ; i<n_cmp ; i++) {
254 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
256 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
258 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
260 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
262 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
264 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
282 else for (
int i=0 ; i<n_cmp ; i++) {
283 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
285 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
287 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
289 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==1))
291 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
293 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
295 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==1))
297 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==2))
299 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
305 cerr <<
"Unknown type of 2-tensor Domain_shell_outer_adapted::export_tau_boundary" << endl ;
311 cerr <<
"Valence " << val <<
" not implemented in Domain_shell_outer_adapted::export_tau_boundary" << endl ;
reference set(const Index &pos)
Read/write of an element.
Bases_container bases_1d
Arrays containing the various basis of decomposition.
int get_basis(int nd) const
Read only the basis in a given domain.
virtual double val_boundary(int, const Val_domain &, const Index &) const
Computes the value of a field at a boundary.
virtual void export_tau_boundary(const Tensor &, int, int, Array< double > &, int &, const Array< int > &, int n_cmp=-1, Array< int > **p_cmp=0x0) const
Exports all the residual equations corresponding to a tensorial one on a given boundary It makes use ...
void export_tau_val_domain_boundary(const Val_domain &eq, int mlim, int bound, Array< double > &res, int &pos_res, int ncond) const
Exports all the residual equations corresponding to a tensorial one on a given boundary It makes use ...
Dim_array nbr_coefs
Number of coefficients.
Class that gives the position inside a multi-dimensional Array.
int & set(int i)
Read/write of the position in a given dimension.
int get_m_order() const
Returns .
bool is_m_order_affected() const
Checks whether the additional parameter order is affected (not very used).
const Param_tensor & get_parameters() const
Returns a pointer on the possible additional parameter.
const Base_tensor & get_basis() const
Returns the vectorial basis (triad) on which the components are defined.
int get_n_comp() const
Returns the number of stored components.
int get_valence() const
Returns the valence.
Class for storing the basis of decompositions of a field and its values on both the configuration and...
bool check_if_zero() const
Check whether the logical state is zero or not.
void coef() const
Computes the coefficients.
const Base_spectral & get_base() const
Returns the basis of decomposition.