KADATH
|
Spacetime intended for binary black hole configurations in full general relativity (see constructor for details about the domains used) The shape of the horizons are variables. More...
#include <bbh.hpp>
Public Member Functions | |
Space_bbh (int ttype, double dist, double rbh1, double rbh2, double rbi, double rext, int nr) | |
Standard constructor More... | |
Space_bbh (FILE *) | |
Constructor from a file. More... | |
void | add_matching (System_of_eqs &syst, const char *rac, const List_comp &list) |
Sets a matching condition accross all the bispheric domain (intended for a second order equation). More... | |
void | add_matching (System_of_eqs &syst, const char *rac, int nused=-1, Array< int > **pused=0x0) |
Sets a matching condition accross all the bispheric domain (intended for a second order equation). More... | |
virtual | ~Space_bbh () |
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... | |
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... | |
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... | |
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... | |
Spacetime intended for binary black hole configurations in full general relativity (see constructor for details about the domains used) The shape of the horizons are variables.
Kadath::Space_bbh::Space_bbh | ( | int | ttype, |
double | dist, | ||
double | rbh1, | ||
double | rbh2, | ||
double | rbi, | ||
double | rext, | ||
int | nr | ||
) |
Standard constructor
ttype | [input] : the type of basis. |
dist | [input] : distance between the centers of the two spheres. |
rbh1 | [input] : radius of the first hole (assumed spherical at this point). |
rbh2 | [input] : radius of the second hole (assumed spherical at this point). |
rbi | [input] : radius of the outer boundary of the bispherical part. |
rext | [input] : outer radius of the. |
nr | [input] : number of points in each dimension |
The various domains are then :
Domain_shell_outer_adapted
around the first hole. Domain_shell_inner_adapted
around the first hole. Domain_shell_outer_adapted
around the second hole. Domain_shell_inner_adapted
around the second hole. Domain_bispheric_chi_first
near the first hole. Domain_bispheric_rect
near the first hole. Domain_bispheric_eta_first
inbetween the two holes. Domain_bispheric_rect
near the second hole. Domain_bispheric_chi_first
near the second hole. Domain_shell
centered on the origin, ecnompassing the two holes. Definition at line 42 of file space_bbh.cpp.
References Kadath::Param::add_double(), Kadath::Space::domains, Kadath::Space::nbr_domains, Kadath::Space::ndim, Kadath::Dim_array::set(), Kadath::Point::set(), Kadath::Space::type_base, Kadath::Domain_shell_inner_adapted::update(), Kadath::Domain_shell_outer_adapted::update(), Kadath::Domain_shell_inner_adapted::vars_to_terms(), and Kadath::Domain_shell_outer_adapted::vars_to_terms().
Kadath::Space_bbh::Space_bbh | ( | FILE * | fd | ) |
Constructor from a file.
Definition at line 113 of file space_bbh.cpp.
References Kadath::Space::domains, Kadath::Space::nbr_domains, Kadath::Space::ndim, Kadath::Space::type_base, Kadath::Domain_shell_inner_adapted::update(), Kadath::Domain_shell_outer_adapted::update(), Kadath::Domain_shell_inner_adapted::vars_to_terms(), and Kadath::Domain_shell_outer_adapted::vars_to_terms().
|
virtual |
Destructor.
Definition at line 150 of file space_bbh.cpp.
References Kadath::Domain_shell_inner_adapted::del_deriv(), Kadath::Domain_shell_outer_adapted::del_deriv(), and Kadath::Space::domains.
void Kadath::Space_bbh::add_matching | ( | System_of_eqs & | syst, |
const char * | rac, | ||
const List_comp & | list | ||
) |
Sets a matching condition accross all the bispheric domain (intended for a second order equation).
syst | : the System_of_eqs . |
rac | : the string describing the boundary condition. |
list | : list of the components to be considered. |
Definition at line 35 of file bbh_add_eq.cpp.
References Kadath::List_comp::get_ncomp(), and Kadath::List_comp::get_pcomp().
void Kadath::Space_bbh::add_matching | ( | System_of_eqs & | syst, |
const char * | rac, | ||
int | nused = -1 , |
||
Array< int > ** | pused = 0x0 |
||
) |
Sets a matching condition accross all the bispheric domain (intended for a second order equation).
syst | : the System_of_eqs . |
rac | : the string describing the boundary 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 28 of file bbh_add_eq.cpp.
References Kadath::System_of_eqs::add_eq_matching().
|
virtual |
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 from Kadath::Space.
Definition at line 174 of file space_bbh.cpp.
References Kadath::Domain::affecte_coef(), Kadath::Space::domains, and Kadath::Array< T >::set().
|
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.
|
virtual |
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 from Kadath::Space.
Definition at line 288 of file space_bbh.cpp.
References Kadath::Array< T >::set().
|
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.
|
virtual |
Gives the number of unknowns coming from the variable shape of the domain.
Reimplemented from Kadath::Space.
Definition at line 169 of file space_bbh.cpp.
References Kadath::Space::domains.
|
virtual |
Saving function.
Reimplemented from Kadath::Space.
Definition at line 161 of file space_bbh.cpp.
References Kadath::Space::domains, Kadath::Space::nbr_domains, Kadath::Space::ndim, and Kadath::Space::type_base.
|
virtual |
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 from Kadath::Space.
Definition at line 207 of file space_bbh.cpp.
References Kadath::Space::domains, and Kadath::Domain::xx_to_ders_from_adapted().
|
virtual |
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 from Kadath::Space.
Definition at line 220 of file space_bbh.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().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |