KADATH
Kadath::Space_polar_adapted Class Reference

The Space_polar_adapted class fills the space with one polar nucleus, one polar shell adapted on the outside, one polar shell adapted on the inside, several standard polar shells and a compactified polar domain, all centered on the same point. More...

#include <adapted_polar.hpp>

Inheritance diagram for Kadath::Space_polar_adapted:
Kadath::Space

Public Member Functions

 Space_polar_adapted (int ttyp, const Point &cr, const Dim_array &nbr, const Array< double > &bounds)
 
 Space_polar_adapted (FILE *)
 Constructor from a file. More...
 
virtual ~Space_polar_adapted ()
 Destructor
More...
 
virtual void save (FILE *) const
 Saving function. More...
 
virtual int nbr_unknowns_from_variable_domains () const
 Gives the number of unknowns coming from the variable shape of the domain. More...
 
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 the system. More...
 
virtual void xx_to_ders_variable_domains (const Array< double > &, int &) const
 Update the vairable domains from a set of values. More...
 
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. More...
 
void add_eq_ori (System_of_eqs &syst, const char *eq)
 Adds an equation being the value of some field at the origin. More...
 
void add_eq (System_of_eqs &syst, const char *eq, const char *rac, const char *rac_der, int nused=-1, Array< int > **pused=0x0) const
 Adds a bulk equation and two matching conditions. More...
 
int get_ndim () const
 Returns the number of dimensions. More...
 
int get_nbr_domains () const
 Returns the number of Domains. More...
 
int get_type_base () const
 Returns the type of basis. More...
 
const Domainget_domain (int i) const
 returns a pointer on the domain. More...
 
virtual Array< int > get_indices_matching_non_std (int dom, int bound) const
 Gives the number of the other domains, touching a given boundary. More...
 

Protected Attributes

int nbr_domains
 Number od Domains. More...
 
int ndim
 Number of dimensions (should be the same for all the Domains). More...
 
int type_base
 Type of basis used (i.e. using either Chebyshev or Legendre polynomials). More...
 
Domain ** domains
 Pointers on the various Domains. More...
 

Detailed Description

The Space_polar_adapted class fills the space with one polar nucleus, one polar shell adapted on the outside, one polar shell adapted on the inside, several standard polar shells and a compactified polar domain, all centered on the same point.

Intended for systems having a symmetry with respect to $\varphi$.

Definition at line 598 of file adapted_polar.hpp.

Constructor & Destructor Documentation

◆ Space_polar_adapted() [1/2]

Kadath::Space_polar_adapted::Space_polar_adapted ( int  ttyp,
const Point cr,
const Dim_array nbr,
const Array< double > &  bounds 
)
Standard constructor ; all the shells are initially not deformed.
Parameters
ttyp[input] : the type of basis.
cr[input] : absolute coordinates of the center.
nbr[input] : number of points in each domain.
bounds[input] : radii of the various shells (and also determines the total number of domains).

Definition at line 29 of file space_polar_adapted.cpp.

References Kadath::Space::domains, Kadath::Array< T >::get_ndim(), Kadath::Array< T >::get_size(), Kadath::Space::nbr_domains, Kadath::Space::ndim, Kadath::Space::type_base, Kadath::Domain_polar_shell_inner_adapted::vars_to_terms(), and Kadath::Domain_polar_shell_outer_adapted::vars_to_terms().

◆ Space_polar_adapted() [2/2]

◆ ~Space_polar_adapted()

Kadath::Space_polar_adapted::~Space_polar_adapted ( )
virtual

Member Function Documentation

◆ add_eq()

void Kadath::Space_polar_adapted::add_eq ( System_of_eqs syst,
const char *  eq,
const char *  rac,
const char *  rac_der,
int  nused = -1,
Array< int > **  pused = 0x0 
) const

Adds a bulk equation and two matching conditions.

Parameters
syst: the System_of_eqs.
eq: the string describing the bulk equation.
rac: the string describing the first matching condition.
rac_der: the string describing the second matching condition.
nused: number of components of eq to be considered. All the components are used of it is -1.
pused: pointer on the indexes of the components to be considered. Not used of nused = -1 .

Definition at line 23 of file polar_adapted_add_eq.cpp.

References Kadath::System_of_eqs::add_eq_inside(), Kadath::System_of_eqs::add_eq_matching(), Kadath::System_of_eqs::get_dom_max(), and Kadath::System_of_eqs::get_dom_min().

◆ add_eq_ori()

void Kadath::Space_polar_adapted::add_eq_ori ( System_of_eqs syst,
const char *  eq 
)

Adds an equation being the value of some field at the origin.

Parameters
syst: the System_of_eqs.
eq: the string describing the quantity that must be zero at the origin

Definition at line 173 of file space_polar_adapted.cpp.

References Kadath::System_of_eqs::add_eq_val(), and Kadath::Space::domains.

◆ affecte_coef_to_variable_domains()

void Kadath::Space_polar_adapted::affecte_coef_to_variable_domains ( int &  conte,
int  cc,
Array< int > &  doms 
) const
virtual

The variation of the functions describing the shape of the Domain are affected from the unknowns of the system.

Parameters
conte: current position if the unknowns.
cc: position of the unknown to be set.
doms: Array containing the index of the variable domains present in this space.

Reimplemented from Kadath::Space.

Definition at line 98 of file space_polar_adapted.cpp.

References Kadath::Domain::affecte_coef(), Kadath::Space::domains, and Kadath::Array< T >::set().

◆ get_domain()

const Domain* Kadath::Space::get_domain ( int  i) const
inlineinherited

returns a pointer on the domain.

Parameters
i[input] : the index of the domain.

Definition at line 1385 of file space.hpp.

References Kadath::Space::domains, and Kadath::Space::nbr_domains.

◆ get_indices_matching_non_std()

Array< int > Kadath::Space::get_indices_matching_non_std ( int  dom,
int  bound 
) const
virtualinherited

Gives the number of the other domains, touching a given boundary.

It also gives the name of the boundary, as seen by the other domain.

Parameters
dom: the domain considered.
bound: the boundary.
Returns
a 2d-array containing the numbers of the other domains (stored in (0,i)) and the names of the boundary (stored in (1,i)).

Reimplemented in Kadath::Space_spheric, Kadath::Space_critic, Kadath::Space_bispheric, Kadath::Space_spheric_adapted, Kadath::Space_bin_ns, Kadath::Space_bin_fake, Kadath::Space_bin_bh, and Kadath::Space_bbh.

Definition at line 66 of file space.cpp.

◆ get_nbr_domains()

int Kadath::Space::get_nbr_domains ( ) const
inlineinherited

Returns the number of Domains.

Definition at line 1375 of file space.hpp.

References Kadath::Space::nbr_domains.

◆ get_ndim()

int Kadath::Space::get_ndim ( ) const
inlineinherited

Returns the number of dimensions.

Definition at line 1373 of file space.hpp.

References Kadath::Space::ndim.

◆ get_type_base()

int Kadath::Space::get_type_base ( ) const
inlineinherited

Returns the type of basis.

Definition at line 1377 of file space.hpp.

References Kadath::Space::type_base.

◆ nbr_unknowns_from_variable_domains()

int Kadath::Space_polar_adapted::nbr_unknowns_from_variable_domains ( ) const
virtual

Gives the number of unknowns coming from the variable shape of the domain.

Reimplemented from Kadath::Space.

Definition at line 93 of file space_polar_adapted.cpp.

References Kadath::Space::domains, and Kadath::Domain::nbr_unknowns_from_adapted().

◆ save()

void Kadath::Space_polar_adapted::save ( FILE *  ) const
virtual

Saving function.

Reimplemented from Kadath::Space.

Definition at line 85 of file space_polar_adapted.cpp.

References Kadath::Space::domains, Kadath::Space::nbr_domains, Kadath::Space::ndim, and Kadath::Space::type_base.

◆ xx_to_ders_variable_domains()

void Kadath::Space_polar_adapted::xx_to_ders_variable_domains ( const Array< double > &  xx,
int &  conte 
) const
virtual

Update the vairable domains from a set of values.

Parameters
xx: set of values used by the affectation
conte: current position in the values vector.

Reimplemented from Kadath::Space.

Definition at line 117 of file space_polar_adapted.cpp.

References Kadath::Space::domains, and Kadath::Domain::xx_to_ders_from_adapted().

◆ xx_to_vars_variable_domains()

void Kadath::Space_polar_adapted::xx_to_vars_variable_domains ( System_of_eqs syst,
const Array< double > &  xx,
int &  conte 
) const
virtual

Update the variables of a system, from the variation of the shape of the domains.

Parameters
syst: the System_of_eqs considered.
xx: set of values used by the affectation
conte: current position in the values vector.

Reimplemented from Kadath::Space.

Definition at line 125 of file space_polar_adapted.cpp.

References Kadath::System_of_eqs::cst, Kadath::System_of_eqs::dom_max, Kadath::System_of_eqs::dom_min, Kadath::Space::domains, Kadath::System_of_eqs::ncst, Kadath::System_of_eqs::nvar, Kadath::Scalar::set_domain(), Kadath::Domain::update_constante(), Kadath::Domain::update_mapping(), Kadath::Domain::update_variable(), Kadath::System_of_eqs::var, and Kadath::Domain::xx_to_vars_from_adapted().

Member Data Documentation

◆ domains

Domain** Kadath::Space::domains
protectedinherited

Pointers on the various Domains.

Definition at line 1368 of file space.hpp.

◆ nbr_domains

int Kadath::Space::nbr_domains
protectedinherited

Number od Domains.

Definition at line 1365 of file space.hpp.

◆ ndim

int Kadath::Space::ndim
protectedinherited

Number of dimensions (should be the same for all the Domains).

Definition at line 1366 of file space.hpp.

◆ type_base

int Kadath::Space::type_base
protectedinherited

Type of basis used (i.e. using either Chebyshev or Legendre polynomials).

Definition at line 1367 of file space.hpp.


The documentation for this class was generated from the following files: