20 #include "headcpp.hpp"
21 #include "adapted_polar.hpp"
23 #include "array_math.hpp"
25 #include "tensor_impl.hpp"
44 for (
int i=0 ; i<
nbr_coefs(0)-order ; i++) {
49 sec.
set(pos_sec) = (*so.
cf)(pos_cf) ;
54 pos_galerkin = pos_cf ;
55 pos_galerkin.
set(1) = 0 ;
56 sec.
set(pos_sec) = (*so.
cf)(pos_cf)
57 -2*(*so.
cf)(pos_galerkin) ;
64 sec.
set(pos_sec) = (*so.
cf)(pos_cf) ;
69 pos_galerkin = pos_cf ;
70 pos_galerkin.
set(1) = 0 ;
71 sec.
set(pos_sec) = (*so.
cf)(pos_cf)
72 -(*so.
cf)(pos_galerkin) ;
80 sec.
set(pos_sec) = (*so.
cf)(pos_cf) ;
85 pos_galerkin = pos_cf ;
86 pos_galerkin.
set(1) = 1 ;
87 sec.
set(pos_sec) = (*so.
cf)(pos_cf)
88 - j*(*so.
cf)(pos_galerkin) ;
96 sec.
set(pos_sec) = (*so.
cf)(pos_cf) ;
101 pos_galerkin = pos_cf ;
102 pos_galerkin.
set(1) = 0 ;
103 sec.
set(pos_sec) = (*so.
cf)(pos_cf)
104 - (2*j+1)*(*so.
cf)(pos_galerkin) ;
110 cerr <<
"Unknow theta basis in Domain_polar_shell_outer_adapted::export_tau_val_domain" << endl ;
129 cerr <<
"Valence " << val <<
" not implemented in Domain_polar_shell_outer_adapted::export_tau" << endl ;
reference set(const Index &pos)
Read/write of an element.
Bases_container bases_1d
Arrays containing the various basis of decomposition.
void export_tau_val_domain(const Val_domain &eq, int mquant, int order, Array< double > &res, int &pos_res, int ncond) const
Exports a residual equation in the bulk.
virtual void export_tau(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 in the bulk.
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_quant() const
Returns .
const Param_tensor & get_parameters() const
Returns a pointer on the possible additional parameter.
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.
Array< double > * cf
Pointer on the Array of the values in the coefficients space.
void coef() const
Computes the coefficients.
const Base_spectral & get_base() const
Returns the basis of decomposition.