This file is indexed.

/usr/include/lorene/C++/Include/star_rot_dirac.h is in liblorene-dev 0.0.0~cvs20161116+dfsg-1ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
/*
 *  Definition of Lorene class Star_rot_Dirac
 *
 */

/*
 *   Copyright (c) 2005 Lap-Ming Lin & Jerome Novak
 *
 *   This file is part of LORENE.
 *
 *   LORENE is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License version 2
 *   as published by the Free Software Foundation.
 *
 *   LORENE is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with LORENE; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

#ifndef __STAR_ROT_DIRAC_H_ 
#define __STAR_ROT_DIRAC_H_ 

/*
 *
 * $Header: /cvsroot/Lorene/C++/Include/star_rot_dirac.h,v 1.8 2014/10/13 08:52:36 j_novak Exp $
 *
 */


// Headers Lorene
#include "star.h"


namespace Lorene {
/**
 * Class for relativistic rotating stars in Dirac gauge and maximal slicing. 
 * (*** Under development ***) \ingroup (star)
 * 
 */
class Star_rot_Dirac : public Star {

    // Data : 
    // -----
 protected:
       /**
	* Spectral exponential filtering order.
	* If 0, no filtering is done (see also \c Scalar::exponential_filter_r).
	* Filtering is performed only in shells containing matter, i.e. for
	* domain numbers \e l such that \f$0 < l <\f$ \c nzet .
	*/
       int spectral_filter ;
    
       double omega ;  ///< Rotation angular velocity (\c [f_unit] )

       // Quantities related to the conformal factor and lapse
       //----------------------------------

       Scalar psi4 ;   ///< Conformal factor \f$\Psi^4\f$
       Scalar psi2 ;   ///< \f$\Psi^2\f$
       Scalar qqq ;    ///< \f$Q = \Psi^2 N\f$ 
       Scalar ln_psi ; ///< \f$ln(\Psi)\f$


       // Fluid quantities
       //-----------------------------------------

       /**
	* Momentum density 3-vector with respect to the 
	* Eulerian observer
	*/
       Vector j_euler ; 
       Scalar v2 ; ///< \f$\gamma_{ij}v^i v^j\f$

       // Metric stuff 
       //-------------------------------------

       /// flat metric \f$f_{ij}\f$ (spherical components)
       const Metric_flat& flat ; 

       Metric tgamma  ;  ///< \f$\tilde{\gamma}_{ij}\f$
       Sym_tensor aa ; ///< \f$A^{ij}\f$ 
       Sym_tensor taa ; ///< \f$\tilde{A}_{ij}\f$
       Scalar aa_quad ; ///< \f$\tilde{A}_{ij} A^{ij}\f$ 

       /**
	* \f$h^{ij}\f$ is defined by \f$\tilde{\gamma}^{ij}=f^{ij}+h^{ij}\f$.
	* We impose the Dirac gauge \f$D_j h^{ij}\f$ explicitly by 
	* defining \f$h^{ij}\f$ to be a symmetric transverse tensor. 
	*/
       Sym_tensor_trans hh ; 


    // Derived data : 
    // ------------
    protected:

       // More to come later.....
       //----------------------------

       mutable double* p_angu_mom ; ///< Angular momentum. 
       mutable double* p_grv2 ; ///< Error on the virial identity GRV2.
       mutable double* p_grv3 ; ///< Error on the virial identity GRV3.
       mutable double* p_tsw ; ///< Ratio T/W.
       mutable double* p_r_circ ; ///<Circumferential equatorial radius.
       mutable double* p_rp_circ ; ///<Circumferential polar radius.


    // Constructors - Destructor
    // -------------------------
    public:

	/**
	 *
	 * Standard constructor.
	 *
	 * @param mp_i Mapping on which the star will be defined
	 * @param nzet_i Number of domains occupied by the star
         * @param eos_i Equation of state of the stellar matter
	 * @param filter order for spectral exponential filtering
	 */
       Star_rot_Dirac(Map& mp_i, int nzet_i, const Eos& eos_i, int filter=0) ;  

       Star_rot_Dirac(const Star_rot_Dirac& ) ; ///< Copy constructor


        /** Constructor from a file (see \c sauve(FILE*) ).
         *
         * @param mp_i Mapping on which the star will be defined
         * @param eos_i Equation of state of the stellar matter
         * @param fich  input file (must have been created by the function
         *      \c sauve )
         */
       Star_rot_Dirac(Map& mp_i, const Eos& eos_i, FILE* fich) ;

	
       virtual ~Star_rot_Dirac() ;	 ///< Destructor
 

    // Memory management
    // -----------------
     protected:

	/// Deletes all the derived quantities
       virtual void del_deriv() const ; 
	
	/// Sets to \c 0x0 all the pointers on derived quantities
       void set_der_0x0() const ; 

	/** Sets to \c ETATNONDEF  (undefined state) the hydrodynamical
         *  quantities relative to the Eulerian observer.
         */
       virtual void del_hydro_euler() ;


    // Mutators / assignment
    // ---------------------
    public:
	
	/// Assignment to another \c Star_rot_Dirac
       void operator=(const Star_rot_Dirac& ) ;	
	
    // Accessors
    // ---------
    public:
       
       /// Returns the filtering order
       int spectral_filter_order() const {return spectral_filter;};

       /** 
	* Returns the rotation angular velocity \f$\Omega\f$
	*/
       double get_omega() const {return omega;} ;


       /**
	* Returns the conformal factor \f$\Psi^4\f$
	*/
       const Scalar& get_psi4() const {return psi4;} ;

       /**
	* Returns \f$\Psi^2\f$
	*/
       const Scalar& get_psi2() const {return psi2;} ;

       /**
	* Returns \f$Q=\Psi^2 N\f$
	*/
       const Scalar& get_qqq() const {return qqq;} ;

       /**
	* Returns \f$ln(\Psi)\f$
	*/
       const Scalar& get_ln_psi() const {return ln_psi;} ;


       // Fluid stuff
       //------------------

       /**
	* Returns the momentum density 3-vector with respect to the 
	* Eulerian observer
	*/
       const Vector& get_j_euler() const {return j_euler;} ;

       /**
	* Reutrns \f$\gamma_{ij}v^i v^j\f$
	*/
       const Scalar& get_v2() const {return v2;} ;


       //Metric stuff
       //-------------------
       /**
	* Returns the conformal metric \f$\tilde{\gamma}_{ij}\f$
	*/
       const Metric get_tgamma() const {return tgamma;} ;

       // documentation comes later......

       /**
	* Returns \f$A^{ij}\f$
	*/
       const Sym_tensor get_aa() const {return aa;} ;

       /**
	* Returns \f$\tilde{A}_{ij}\f$
	*/
       const Sym_tensor get_taa() const {return taa;} ;
       
       /** 
	* Returns \f$\tilde{A}_{ij} A^{ij}\f$
	*/
       const Scalar get_aa_quad() const {return aa_quad;} ;
       
       /** 
	* Returns \f$h^{ij}\f$
	*/
       const Sym_tensor_trans get_hh() const {return hh;} ;




    // Outputs
    // -------
    public:

       virtual void sauve(FILE* ) const ;	    ///< Save in a file
	
    protected:

       virtual ostream& operator>>(ostream& ) const ;

   
    // Global quantities
    //-------------------------
    public:

       virtual double mass_b() const ; ///< Baryonic mass 
       virtual double mass_g() const ; ///< Gravitational mass
       virtual double angu_mom() const ; ///< Angular momentum
       virtual double grv2() const ;  ///< Error on the virial identity GRV2
       virtual double grv3() const ; ///< Error on the virial identity GRV3
       virtual double tsw() const ; ///< Ratio T/W
       virtual double aplat() const ; ///< Flattening r_pole/r_eq
       virtual double r_circ() const ; ///< Circumferential equatorial radius. 
       virtual double rp_circ() const ; ///< Circumferential polar radius. 
       /**
	* Ellipticity \e e.
	* Defined as \f$ e = \sqrt{1 - \left( \frac{R^c_e}{R^c_p} \right)^2} \f$,
	* where \f$R^c_e\f$ and \f$R^c_p\f$ are, respectively, the equatorial 
	* and polar circumferential radius, given by \c r_circ() and \c rp_circ().
	*/
       virtual double ellipt() const ;




    // Computational routines
    //--------------------------
    public:

       /**
	* Computes the hydrodynamical quantities relative to the Eulerian 
	* observer from those in the fluid frame.
	* 
	* More later......
	*/ 
       virtual void hydro_euler() ; 

       
       /**
	* Computes metric quantities from known potentials.
	* 
	* The calculation is performed starting from \c qqq, \c logn,
	* \c shift, \c hh, which are supposed to be up to date.
	* From these, the following fields are updated: \c nnn, 
	* \c psi4, \c psi2, \c ln_psi, \c tgamma, \c aa, \c taa, and 
	* \c aa_quad. 
	*/
       void update_metric() ;


       /**
	* Computes an equilibrium configuration 
	*/ 
       void equilibrium(double ent_c, double omega0, double fact_omega, 
			int nzadapt, const Tbl& ent_limit,
			const Itbl& icontrol, const Tbl& control,
			double mbar_wanted, double aexp_mass, 
			Tbl& diff)  ;

       /**
	* Solution of the two scalar Poisson equations for rotating 
	* stars in Dirac gauge
	*/
       void solve_logn_f(Scalar& ln_f_new) const ;

       /**
	* Solution of the two scalar Poisson equations for rotating 
	* stars in Dirac gauge
	*/
       void solve_logn_q(Scalar& ln_q_new) const ;

       /**
	* Solution of the two scalar Poisson equations for rotating 
	* stars in Dirac gauge
	*/
       void solve_qqq(Scalar& q_new) const ;

       /**
	* Solution of the shift equation for rotating stars 
	* in Dirac gauge
	*/
       void solve_shift(Vector& shift_new) const ;

       /**
	* Solution of the tensor Poisson equation for rotating stars 
	* in Dirac gauge
	*/
       void solve_hij(Sym_tensor_trans& hij_new) const ;
              
};

}
#endif