KADATH
|
The Space_spheric_symphi_symphi
class fills the space with spherical domain(s) with symmetry in phi.
More...
#include <spheric_symphi.hpp>
Public Member Functions | |
Space_spheric_symphi (int ttype, const Point &cr, const Dim_array &nbr, double bound) | |
Standard constructor with only one nucleus. More... | |
Space_spheric_symphi (int ttype, const Point &cr, const Dim_array &nbr, const Array< double > &bounds, bool withzec=false) | |
Standard constructor with several domains. More... | |
Space_spheric_symphi (FILE *fd, bool withzec=false) | |
Constructor from a file. More... | |
virtual void | save (FILE *) const |
Saving function. 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... | |
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 Domain * | get_domain (int i) const |
returns a pointer on the domain. 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 &conte, int cc, Array< int > &doms) 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 > &xx, int &conte) const |
Update the vairable domains from a set of values. More... | |
virtual void | xx_to_vars_variable_domains (System_of_eqs *syst, const Array< double > &xx, int &conte) const |
Update the variables of a system, from the variation of the shape of the domains. 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... | |
The Space_spheric_symphi_symphi
class fills the space with spherical domain(s) with symmetry in phi.
Definition at line 954 of file spheric_symphi.hpp.
Kadath::Space_spheric_symphi::Space_spheric_symphi | ( | int | ttype, |
const Point & | cr, | ||
const Dim_array & | nbr, | ||
double | bound | ||
) |
Standard constructor with only one nucleus.
ttype | [input] : the type of basis. |
cr | [input] : absolute coordinates of the center. |
nbr | [input] : number of points in each domain. |
bound | [input] : radius of the nucleus. |
Definition at line 26 of file space_spheric_symphi.cpp.
References Kadath::Space::domains, Kadath::Space::nbr_domains, Kadath::Space::ndim, and Kadath::Space::type_base.
Kadath::Space_spheric_symphi::Space_spheric_symphi | ( | int | ttype, |
const Point & | cr, | ||
const Dim_array & | nbr, | ||
const Array< double > & | bounds, | ||
bool | withzec = false |
||
) |
Standard constructor with several domains.
ttype | [input] : the type of basis. |
cr | [input] : absolute coordinates of the center. |
nbr | [input] : number of points in each domain. |
bounds | [input] : radius of the nucleus. |
withzec | [input] : put an outer compactified domain or not ? |
Definition at line 38 of file space_spheric_symphi.cpp.
References Kadath::Space::domains, Kadath::Array< T >::get_size(), Kadath::Space::nbr_domains, Kadath::Space::ndim, and Kadath::Space::type_base.
Kadath::Space_spheric_symphi::Space_spheric_symphi | ( | FILE * | fd, |
bool | withzec = false |
||
) |
Constructor from a file.
Definition at line 58 of file space_spheric_symphi.cpp.
References Kadath::Space::domains, Kadath::Space::nbr_domains, Kadath::Space::ndim, and Kadath::Space::type_base.
void Kadath::Space_spheric_symphi::add_eq_ori | ( | System_of_eqs & | syst, |
const char * | eq | ||
) |
Adds an equation being the value of some field at the origin.
syst | : the System_of_eqs . |
eq | : the string describing the quantity that must be zero at the origin |
Definition at line 25 of file spheric_symphi_add_eq.cpp.
References Kadath::System_of_eqs::add_eq_val(), and Kadath::Space::domains.
|
inlinevirtualinherited |
The variation of the functions describing the shape of the Domain
are affected from the unknowns of the system.
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 in Kadath::Space_bin_ns, Kadath::Space_bin_bh, Kadath::Space_bbh, Kadath::Space_polar_adapted, Kadath::Space_adapted_bh, and Kadath::Space_spheric_adapted.
|
inlineinherited |
returns a pointer on the domain.
i | [input] : the index of the domain. |
Definition at line 1385 of file space.hpp.
References Kadath::Space::domains, and Kadath::Space::nbr_domains.
|
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.
dom | : the domain considered. |
bound | : the boundary. |
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.
|
inlineinherited |
Returns the number of Domains
.
Definition at line 1375 of file space.hpp.
References Kadath::Space::nbr_domains.
|
inlineinherited |
Returns the number of dimensions.
Definition at line 1373 of file space.hpp.
References Kadath::Space::ndim.
|
inlineinherited |
Returns the type of basis.
Definition at line 1377 of file space.hpp.
References Kadath::Space::type_base.
|
inlinevirtualinherited |
Gives the number of unknowns coming from the variable shape of the domain.
Reimplemented in Kadath::Space_bin_ns, Kadath::Space_bin_bh, Kadath::Space_bbh, Kadath::Space_polar_adapted, Kadath::Space_adapted_bh, and Kadath::Space_spheric_adapted.
|
virtual |
Saving function.
Reimplemented from Kadath::Space.
Definition at line 78 of file space_spheric_symphi.cpp.
References Kadath::Space::domains, Kadath::Space::nbr_domains, Kadath::Space::ndim, and Kadath::Space::type_base.
|
inlinevirtualinherited |
Update the vairable domains from a set of values.
xx | : set of values used by the affectation |
conte | : current position in the values vector. |
Reimplemented in Kadath::Space_bin_ns, Kadath::Space_bin_bh, Kadath::Space_bbh, Kadath::Space_polar_adapted, Kadath::Space_adapted_bh, and Kadath::Space_spheric_adapted.
|
inlinevirtualinherited |
Update the variables of a system, from the variation of the shape of the domains.
syst | : the System_of_eqs considered. |
xx | : set of values used by the affectation |
conte | : current position in the values vector. |
Reimplemented in Kadath::Space_bin_ns, Kadath::Space_bin_bh, Kadath::Space_bbh, Kadath::Space_polar_adapted, Kadath::Space_adapted_bh, and Kadath::Space_spheric_adapted.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |