KADATH
Kadath::Space_spheric_time Class Reference

The Space_oned class fills the space with 2-dimensioanl domains : spherically symmetric and time dependant. More...

#include <spheric_time.hpp>

Inheritance diagram for Kadath::Space_spheric_time:
Kadath::Space

Public Member Functions

 Space_spheric_time (int ttype, const Dim_array &nbr, const Array< double > &bounds, double tmmin, double tmmax, bool wc=false)
 Standard constructor. More...
 
 Space_spheric_time (FILE *)
 Constructor from a file. More...
 
virtual void save (FILE *) const
 Saving function. More...
 
double get_tmax () const
 Returns the final time. More...
 
double get_tmin () const
 Returns the initial time. 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 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

double tmin
 Initial time $ t_{\rm min} $. More...
 
double tmax
 Final time $ t_{\rm max} $. More...
 
bool withcompact
 Indicator of the presence of a compactified Domain. More...
 
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_oned class fills the space with 2-dimensioanl domains : spherically symmetric and time dependant.

Definition at line 495 of file spheric_time.hpp.

Constructor & Destructor Documentation

◆ Space_spheric_time() [1/2]

Kadath::Space_spheric_time::Space_spheric_time ( int  ttype,
const Dim_array nbr,
const Array< double > &  bounds,
double  tmmin,
double  tmmax,
bool  wc = false 
)

Standard constructor.

Parameters
ttype[input] : the type of basis.
nbr[input] : number of points in each domain.
bounds[input] : radii of the various shells (and also determines the total number of domains).
tmmin: Initial time.
tmmax: Final time.
wc[input] : With a compactified domain or not ?

Definition at line 27 of file space_spheric_time.cpp.

References Kadath::Space::domains, Kadath::Array< T >::get_ndim(), Kadath::Array< T >::get_size(), Kadath::Space::nbr_domains, Kadath::Space::ndim, tmax, tmin, Kadath::Space::type_base, and withcompact.

◆ Space_spheric_time() [2/2]

Kadath::Space_spheric_time::Space_spheric_time ( FILE *  fd)

Member Function Documentation

◆ affecte_coef_to_variable_domains()

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

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 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.

Definition at line 1401 of file space.hpp.

◆ 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_tmax()

double Kadath::Space_spheric_time::get_tmax ( ) const
inline

Returns the final time.

Definition at line 520 of file spheric_time.hpp.

References tmax.

◆ get_tmin()

double Kadath::Space_spheric_time::get_tmin ( ) const
inline

Returns the initial time.

Definition at line 525 of file spheric_time.hpp.

References tmin.

◆ 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()

virtual int Kadath::Space::nbr_unknowns_from_variable_domains ( ) const
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.

Definition at line 1394 of file space.hpp.

◆ save()

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

Saving function.

Reimplemented from Kadath::Space.

Definition at line 79 of file space_spheric_time.cpp.

References Kadath::Space::domains, Kadath::Space::nbr_domains, Kadath::Space::ndim, tmax, tmin, Kadath::Space::type_base, and withcompact.

◆ xx_to_ders_variable_domains()

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

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 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.

Definition at line 1407 of file space.hpp.

◆ xx_to_vars_variable_domains()

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

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 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.

Definition at line 1414 of file space.hpp.

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.

◆ tmax

double Kadath::Space_spheric_time::tmax
protected

Final time $ t_{\rm max} $.

Definition at line 499 of file spheric_time.hpp.

◆ tmin

double Kadath::Space_spheric_time::tmin
protected

Initial time $ t_{\rm min} $.

Definition at line 498 of file spheric_time.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.

◆ withcompact

bool Kadath::Space_spheric_time::withcompact
protected

Indicator of the presence of a compactified Domain.

Definition at line 500 of file spheric_time.hpp.


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