KADATH
bin_fake.hpp
1 /*
2  Copyright 2017 Philippe Grandclement
3 
4  This file is part of Kadath.
5 
6  Kadath is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Kadath is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Kadath. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef __BIN_FAKE_HPP_
21 #define __BIN_FAKE_HPP_
22 
23 #include "space.hpp"
24 #include "spheric.hpp"
25 #include "bispheric.hpp"
26 
27 namespace Kadath {
35 class Space_bin_fake : public Space {
36  public:
58  Space_bin_fake (int ttype, double dist, double r1, double r2, double rbi, double rext, int nr) ;
59  Space_bin_fake (FILE*) ;
60 
61  virtual ~Space_bin_fake() ;
62  virtual void save(FILE*) const ;
63 
73  void add_eq (System_of_eqs& syst, const char* eq, const char* rac, const char* rac_der, int nused=-1, Array<int>** pused=0x0) ;
83  void add_eq_nozec (System_of_eqs& syst, const char* eq, const char* rac, const char* rac_der, int nused=-1, Array<int>** pused=0x0) ;
84 
90  void add_eq_int_inf (System_of_eqs& syst, const char* eq) ;
91  virtual Array<int> get_indices_matching_non_std(int dom, int bound) const ;
92 } ;
93 }
94 #endif
Spacetime intended for fake binary neutron star configurations (see constructor for details about the...
Definition: bin_fake.hpp:35
Space_bin_fake(int ttype, double dist, double r1, double r2, double rbi, double rext, int nr)
Standard constructor.
void add_eq_int_inf(System_of_eqs &syst, const char *eq)
Adds an equation being a surface integral at infinity.
void add_eq(System_of_eqs &syst, const char *eq, const char *rac, const char *rac_der, int nused=-1, Array< int > **pused=0x0)
Adds a bulk equation and two matching conditions.
virtual Array< int > get_indices_matching_non_std(int dom, int bound) const
Gives the number of the other domains, touching a given boundary.
virtual void save(FILE *) const
Saving function.
void add_eq_nozec(System_of_eqs &syst, const char *eq, const char *rac, const char *rac_der, int nused=-1, Array< int > **pused=0x0)
Adds a bulk equation and two matching conditions.
virtual ~Space_bin_fake()
Destructor.
The Space class is an ensemble of domains describing the whole space of the computation.
Definition: space.hpp:1362
Class used to describe and solve a system of equations.