20 #include "headcpp.hpp"
22 #include "spheric.hpp"
24 #include "tensor_impl.hpp"
49 pos_galerkin = pos_cf ;
50 pos_galerkin.
set(1) = 0 ;
64 pos_galerkin = pos_cf ;
65 pos_galerkin.
set(1) = 0 ;
78 pos_galerkin = pos_cf ;
79 pos_galerkin.
set(1) = 1 ;
92 pos_galerkin = pos_cf ;
93 pos_galerkin.
set(1) = 0 ;
101 cerr <<
"Unknow theta basis in Domain_compact::export_tau_val_domain_boundary_mquant" << endl ;
114 int kmin = 2*mlim + 2 ;
134 pos_galerkin = pos_cf ;
135 pos_galerkin.
set(1) = 0 ;
149 pos_galerkin = pos_cf ;
150 pos_galerkin.
set(1) = 0 ;
164 pos_galerkin = pos_cf ;
165 pos_galerkin.
set(1) = 1 ;
181 pos_galerkin = pos_cf ;
182 pos_galerkin.
set(1) = 0 ;
191 cerr <<
"Unknow theta basis in Domain_compact::export_tau_val_domain_boundary" << endl ;
203 if ((bound!=INNER_BC) && (bound!=OUTER_BC)) {
204 cerr <<
"Unknown boundary in Domain_compact::export_tau_boundary" << endl ;
231 else for (
int i=0 ; i<n_cmp ; i++) {
232 if ((*p_cmp[i])(0)==1)
234 if ((*p_cmp[i])(0)==2)
236 if ((*p_cmp[i])(0)==3)
248 else for (
int i=0 ; i<n_cmp ; i++) {
249 if ((*p_cmp[i])(0)==1)
251 if ((*p_cmp[i])(0)==2)
253 if ((*p_cmp[i])(0)==3)
259 cerr <<
"Unknown type of vector Domain_compact::export_tau_boundary" << endl ;
276 else for (
int i=0 ; i<n_cmp ; i++) {
277 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
279 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
281 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
283 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
285 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
287 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
306 else for (
int i=0 ; i<n_cmp ; i++) {
307 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
309 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
311 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
313 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==1))
315 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
317 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
319 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==1))
321 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==2))
323 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
338 else for (
int i=0 ; i<n_cmp ; i++) {
339 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
341 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
343 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
345 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
347 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
349 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
367 else for (
int i=0 ; i<n_cmp ; i++) {
368 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==1))
370 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==2))
372 if (((*p_cmp[i])(0)==1) && ((*p_cmp[i])(1)==3))
374 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==1))
376 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==2))
378 if (((*p_cmp[i])(0)==2) && ((*p_cmp[i])(1)==3))
380 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==1))
382 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==2))
384 if (((*p_cmp[i])(0)==3) && ((*p_cmp[i])(1)==3))
390 cerr <<
"Unknown type of 2-tensor Domain_compact::export_tau_boundary" << endl ;
396 cerr <<
"Valence " << val <<
" not implemented in Domain_compact::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.
void export_tau_val_domain_boundary_mquant(const Val_domain &eq, int mquant, 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 ...
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 .
int get_m_quant() 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.
bool is_m_quant_affected() const
Checks whether the additional parameter is affected (used for boson stars for instance).
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.