20 #include "headcpp.hpp"
21 #include "utilities.hpp"
23 #include "bispheric.hpp"
25 #include "term_eq.hpp"
27 #include "tensor_impl.hpp"
40 poshor.
set(1) = pos(1) ;
41 poshor.
set(2) = pos(2) ;
43 constante.
set(pos) = so(poshor) ;
52 Val_domain result (constante*rhor*rhor/radloc2) ;
61 cerr <<
"fithor only defined with respect for a tensor" << endl ;
68 cerr <<
"Domain mismatch in Domain_bispheric_rect::fithor (Term_eq version)" << endl ;
74 if ((valence!=0) && (valence!=1)) {
75 cerr <<
"Domain_bispheric_chi_first::fithor not definded for valence= " << valence << endl ;
94 return Term_eq (dom, resval, resder) ;
96 else return Term_eq (dom, resval) ;
102 for (
int i=1 ; i<=3 ; i++) {
117 for (
int i=1 ; i<=3 ; i++) {
128 return Term_eq (dom, resval, resder) ;
130 else return Term_eq (dom, resval) ;
146 poshor.
set(1) = pos(1) ;
147 poshor.
set(2) = pos(2) ;
149 constante.
set(pos) = so(poshor) ;
159 Val_domain result (constante*rhor*rhor/radloc2) ;
168 cerr <<
"fithor only defined with respect for a tensor" << endl ;
175 cerr <<
"Domain mismatch in Domain_bispheric_chi_first::fithor (Term_eq version)" << endl ;
182 if ((valence!=0) && (valence!=1)) {
183 cerr <<
"Domain_bispheric_chi_first::fithor not definded for valence= " << valence << endl ;
202 return Term_eq (dom, resval, resder) ;
204 else return Term_eq (dom, resval) ;
210 for (
int i=1 ; i<=3 ; i++) {
224 for (
int i=1 ; i<=3 ; i++) {
236 return Term_eq (dom, resval, resder) ;
238 else return Term_eq (dom, resval) ;
double aa
Distance scale .
Term_eq fithor(const Term_eq &so) const
Returns a fit in with respect to the inner spherical boundary.
double eta_lim
Lower bound for .
double eta_minus
associated with .
double aa
Distance scale .
Term_eq fithor(const Term_eq &so) const
Returns a fit in with respect to the inner spherical boundary.
Dim_array nbr_points
Number of colocation points.
Val_domain const & get_cart(int i) const
Returns a Cartesian coordinates.
Class that gives the position inside a multi-dimensional Array.
int & set(int i)
Read/write of the position in a given dimension.
bool inc(int increm, int var=0)
Increments the position of the Index.
The class Scalar does not really implements scalars in the mathematical sense but rather tensorial co...
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.
void set_name_ind(int dd, char name)
Sets the name of one index ; the names must have been affected first.
void set_name_affected()
Affects the name of the indices.
Scalar & set(const Array< int > &ind)
Returns the value of a component (read/write version).
char const * get_name_ind() const
int get_index_type(int i) const
Gives the type (covariant or contravariant) of a given index.
const Base_tensor & get_basis() const
Returns the vectorial basis (triad) on which the components are defined.
int get_valence() const
Returns the valence.
bool is_name_affected() const
Check whether the names of the indices have been affected.
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...
void set_zero()
Sets the Val_domain to zero (logical state to zero and arrays destroyed).
bool check_if_zero() const
Check whether the logical state is zero or not.
double & set(const Index &pos)
Read/write the value of the field in the configuration space.
Base_spectral & set_base()
Sets the basis of decomposition.
void allocate_conf()
Allocates the values in the configuration space and destroys the values in the coefficients space.
const Base_spectral & get_base() const
Returns the basis of decomposition.
A class derived from Tensor to deal specificaly with objects of valence 1 (and so also 1-forms).
Scalar & set(int)
Read/write access to a component.