20 #include "headcpp.hpp"
21 #include "adapted_bh.hpp"
22 #include "utilities.hpp"
25 #include "tensor_impl.hpp"
26 #include "system_of_eqs.hpp"
27 #include "name_tools.hpp"
53 fread_be (&
ndim,
sizeof(
int), 1, fd) ;
54 fread_be (&
type_base,
sizeof(
int), 1, fd) ;
75 fwrite_be (&
ndim,
sizeof(
int), 1, fd) ;
76 fwrite_be (&
type_base,
sizeof(
int), 1, fd) ;
108 for (
int i=0 ; i<sys->
nvar ; i++) {
109 for (
int n=0 ; n<sys->
var[i]->get_n_comp() ; n++) {
113 sys->
var[i]->cmp[n]->set_domain(0) = res(0) ;
118 for (
int i=0 ; i<sys->
ncst ; i++)
120 for (
int n=0 ; n<sys->
cst[i*(sys->
dom_max-sys->
dom_min+1)]->val_t->get_n_comp() ; n++) {
130 sys->
cst[i*(sys->
dom_max-sys->
dom_min+1)]->val_t->cmp[n]->set_domain(0) = res(0) ;
reference set(const Index &pos)
Read/write of an element.
int get_ndim() const
Returns the number of dimensions.
int get_size(int i) const
Returns the size of a given dimension.
Class for storing the dimensions of an array.
Class for a spherical compactified domain and a symmetry with respect to the plane .
Class for a spherical-like domain, having a symmetry with respect to the plane .
void del_deriv() override
Destroys the derivated members (like coloc, cart and radius), when changing the type of colocation po...
virtual void vars_to_terms() const
The Term_eq describing the variable shape of the Domain are updated.
Class for a spherical shell and a symmetry with respect to the plane .
Abstract class that implements the fonctionnalities common to all the type of domains.
virtual void xx_to_ders_from_adapted(const Array< double > &xx, int &conte) const
Affects the derivative part of variable a Domain from a set of values.
virtual int nbr_unknowns_from_adapted() const
Gives the number of unknowns coming from the variable shape of the domain.
virtual void affecte_coef(int &conte, int cc, bool &found) const
The variation of the functions describing the shape of the Domain are affected from the unknowns of t...
virtual void update_variable(const Val_domain &shape, const Scalar &oldval, Scalar &newval) const
Update the value of a scalar, after the shape of the Domain has been changed by the system.
virtual void xx_to_vars_from_adapted(Val_domain &shape, const Array< double > &xx, int &conte) const
Computes the new boundary of a Domain from a set of values.
virtual void update_mapping(const Val_domain &shape)
Updates the variables parts of the Domain.
virtual void update_constante(const Val_domain &shape, const Scalar &oldval, Scalar &newval) const
Update the value of a scalar, after the shape of the Domain has been changed by the system.
The class Point is used to store the coordinates of a point.
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.
virtual void xx_to_ders_variable_domains(const Array< double > &, int &) const
Update the vairable domains from a set of values.
virtual void save(FILE *) const
Saving function.
Space_adapted_bh(int base, const Point &cr, const Dim_array &nbr, const Array< double > &bounds)
virtual void affecte_coef_to_variable_domains(int &, int, Array< int > &) const
The variation of the functions describing the shape of the Domain are affected from the unknowns of t...
virtual ~Space_adapted_bh()
Destructor
virtual int nbr_unknowns_from_variable_domains() const
Gives the number of unknowns coming from the variable shape of the domain.
virtual void xx_to_vars_variable_domains(System_of_eqs *, const Array< double > &, int &) const
Update the variables of a system, from the variation of the shape of the domains.
int type_base
Type of basis used (i.e. using either Chebyshev or Legendre polynomials).
int ndim
Number of dimensions (should be the same for all the Domains).
Domain ** domains
Pointers on the various Domains.
int nbr_domains
Number od Domains.
Class used to describe and solve a system of equations.
MMPtr_array< Tensor > var
Pointer on the unknown fields.
MMPtr_array< Term_eq > cst
Pointers on the Term_eq coming from the constants passed by the user.
int dom_max
Highest domain number.
int ncst
Number of constants passed by the user.
int dom_min
Smallest domain number.
int nvar
Number of unknown fields.
Class for storing the basis of decompositions of a field and its values on both the configuration and...