20 #include "headcpp.hpp"
21 #include "spheric.hpp"
22 #include "term_eq.hpp"
24 #include "tensor_impl.hpp"
26 #include "array_math.hpp"
47 double sh = (nn==0) ? 1./pow(rmax, dim-2) : 0 ;
48 double dsh = (nn==0) ? -
double(dim-2)/pow(rmax, dim-1) : 1 ;
66 cerr <<
"fitschwarz only defined with respect for a tensor" << endl ;
73 cerr <<
"Domain mismatch in Domain_shell::fitschwarz (Term_eq version)" << endl ;
78 for (
int i=0 ; i<so.
get_val_t().get_n_comp() ; i++) {
90 for (
int i=0 ; i<so.
get_der_t().get_n_comp() ; i++) {
99 return Term_eq (dom, resval, resder) ;
101 else return Term_eq (dom, resval) ;
double beta
Relates the numerical to the physical radii.
double alpha
Relates the numerical to the physical radii.
Val_domain fitschwarz(const Val_domain &, int) const
Fit some field with a decay (Val_domain version).
virtual Val_domain der_normal(const Val_domain &, int) const
Normal derivative with respect to a given surface.
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.
Val_domain & set_domain(int)
Read/write of a particular Val_domain.
const Domain * get_domain(int i) const
returns a pointer on the domain.
Scalar & set(const Array< int > &ind)
Returns the value of a component (read/write version).
virtual Array< int > indices(int pos) const
Gives the values of the indices corresponding to a location in the array used for storage of the comp...
const Space & get_space() const
Returns the Space.
This class is intended to describe the manage objects appearing in the equations.
int get_type_data() const
const Tensor * get_p_der_t() const
Tensor const & get_val_t() const
Tensor const & get_der_t() const
Class for storing the basis of decompositions of a field and its values on both the configuration and...
Base_spectral base
Spectral basis of the field.
double & set_coef(const Index &pos)
Read/write the value of the field in the coefficient space.
void set_zero()
Sets the Val_domain to zero (logical state to zero and arrays destroyed).
void allocate_coef()
Allocates the values in the coefficient space and destroys the values in the configuration space.
bool check_if_zero() const
Check whether the logical state is zero or not.
void coef() const
Computes the coefficients.
Array< double > get_coef() const