LORENE
graphique.h
1 /*
2  * Prototypes of graphical routines
3  *
4  */
5 
6 /*
7  * Copyright (c) 1999-2005 Eric Gourgoulhon, Jerome Novak
8  * & Philippe Grandclement
9  *
10  * This file is part of LORENE.
11  *
12  * LORENE is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * LORENE is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with LORENE; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25  *
26  */
27 
28 
29 #ifndef __GRAPHIQUE_H_
30 #define __GRAPHIQUE_H_
31 
32 /*
33  * $Id: graphique.h,v 1.23 2014/10/13 08:52:34 j_novak Exp $
34  * $Log: graphique.h,v $
35  * Revision 1.23 2014/10/13 08:52:34 j_novak
36  * Lorene classes and functions now belong to the namespace Lorene.
37  *
38  * Revision 1.22 2012/01/17 10:05:39 j_penner
39  * added point plot routine: des_points
40  *
41  * Revision 1.21 2011/03/27 16:36:04 e_gourgoulhon
42  * Added function save_profile.
43  *
44  * Revision 1.20 2008/08/19 06:41:59 j_novak
45  * Minor modifications to avoid warnings with gcc 4.3. Most of them concern
46  * cast-type operations, and constant strings that must be defined as const char*
47  *
48  * Revision 1.19 2005/08/24 09:02:23 j_novak
49  * Comments for new version of doxygen.
50  *
51  * Revision 1.18 2005/03/25 19:55:41 e_gourgoulhon
52  * Added the arguments nbound and xbound or draw_bound to the
53  * functions des_profile and des_profile_mult
54  * (draw of the domain boundaries).
55  *
56  * Revision 1.17 2005/03/24 22:00:08 e_gourgoulhon
57  * -- New functions des_coupe_* to plot a Scalar and a Vector
58  * -- Reorganization of documentation (functions referring to a Cmp
59  * or a Tenseur are now declared 'obsolete').
60  *
61  * Revision 1.16 2004/05/20 20:29:03 e_gourgoulhon
62  * Added argument 'device' to functions des_evol.
63  *
64  * Revision 1.15 2004/05/17 19:46:19 e_gourgoulhon
65  * -- Function des_profile_mult(const Scalar**,...): added argument
66  * device.
67  * -- Functions des_meridian: added arguments device and closeit.
68  *
69  * Revision 1.14 2004/05/11 20:08:11 e_gourgoulhon
70  * des_evol: modified the ordering of the argument list; the default
71  * value of closeit is now 'false'.
72  * New version of des_evol without specifying the index range.
73  *
74  * Revision 1.13 2004/04/05 14:41:38 e_gourgoulhon
75  * Added functions des_meridian.
76  *
77  * Revision 1.12 2004/03/22 13:12:41 j_novak
78  * Modification of comments to use doxygen instead of doc++
79  *
80  * Revision 1.11 2004/02/17 22:15:26 e_gourgoulhon
81  * -- Modified prototypes of des_profile's and des_profile_mult's
82  * -- Added des_profile_mult with arbitrary x sampling
83  * -- Added des_evol (time evolution)
84  *
85  * Revision 1.10 2004/02/15 21:52:35 e_gourgoulhon
86  * Changed prototype of des_profile_mult : Scalar* --> Scalar**.
87  *
88  * Revision 1.9 2004/02/12 16:19:34 e_gourgoulhon
89  * Added function des_profile_mult for Scalars.
90  * Modified prototype of des_profile_mult(const float*,...)
91  *
92  * Revision 1.8 2004/02/09 09:33:54 j_novak
93  * Minor modif.
94  *
95  * Revision 1.7 2004/02/04 14:28:12 p_grandclement
96  * Ajout de la version Scalar de des_profile
97  *
98  * Revision 1.6 2003/10/03 11:42:46 j_novak
99  * Removal of the functions associated with Iris Explorer.
100  *
101  * Revision 1.5 2003/09/22 12:50:47 e_gourgoulhon
102  * First version: not ready yet!
103  *
104  * Revision 1.4 2003/06/03 10:00:37 e_gourgoulhon
105  * Added a new version of des_profile for Cmp with scale and nomx
106  * specified in the argument list
107  *
108  * Revision 1.3 2003/01/17 13:48:17 f_limousin
109  * Add des_explorer and des_explorer_symz for a Bin_ns_ncp
110  *
111  * Revision 1.2 2002/09/13 09:17:33 j_novak
112  * Modif. commentaires
113  *
114  * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
115  * LORENE
116  *
117  * Revision 1.24 2001/06/21 07:35:44 novak
118  * Added two routines for 2-surface star drawing (des_bi_coupe_y)
119  *
120  * Revision 1.23 2001/05/22 13:31:54 eric
121  * Ajout de des_explorer_coef
122  *
123  * Revision 1.22 2001/03/07 10:47:09 eric
124  * Ajout de des_explorer_symz
125  *
126  * Revision 1.21 2000/12/04 14:16:55 novak
127  * des_explorer2D added
128  *
129  * Revision 1.20 2000/06/22 16:09:03 eric
130  * Retour a la version 1.18 (1.19 etait une erreur).
131  *
132  * Revision 1.18 2000/03/02 10:33:32 eric
133  * Ajout des routines des_vect_bin_*
134  *
135  * Revision 1.17 2000/03/01 16:11:14 eric
136  * Ajout des dessins de champs vectoriels.
137  *
138  * Revision 1.16 2000/02/12 11:17:46 eric
139  * Ajout des versions de des_coupe_* avec determination automatique des
140  * bornes de la fenetre graphique.
141  *
142  * Revision 1.15 2000/02/11 18:43:27 eric
143  * Ajout de l'argument draw_bound aux routines des_coupe*.
144  *
145  * Revision 1.14 2000/02/11 17:47:33 eric
146  * Ajout des routines des_coupe_bin_*
147  *
148  * Revision 1.13 2000/02/11 16:51:49 eric
149  * Les routines de dessins de Cmp utilisent desormais les coordonnees
150  * cartesiennes abolues (X,Y,Z) et non plus relatives (x,y,z).
151  *
152  * Revision 1.12 2000/02/11 09:58:12 eric
153  * *** empty log message ***
154  *
155  * Revision 1.11 2000/02/11 09:56:14 eric
156  * Ajout des sorties pour Explorer.
157  *
158  * Revision 1.10 1999/12/27 12:22:25 eric
159  * *** empty log message ***
160  *
161  * Revision 1.9 1999/12/27 12:17:11 eric
162  * Ajout des routines des_domaine_*.
163  * Les valeurs par defaut du nombre de mailles pour le quadrillage des
164  * dans des_coupe_* passent de 80x80 a 100x100.
165  *
166  * Revision 1.8 1999/12/24 12:59:38 eric
167  * Ajout des routines des_surface_*
168  *
169  * Revision 1.7 1999/12/23 16:14:33 eric
170  * Les routines des_coupe_* dessine desormais egalement la surface
171  * de l'objet (ajout de l'argument defsurf).
172  *
173  * Revision 1.6 1999/12/20 11:04:24 eric
174  * Modif commentaires.
175  *
176  * Revision 1.5 1999/12/20 11:00:38 eric
177  * *** empty log message ***
178  *
179  * Revision 1.4 1999/12/20 10:53:52 eric
180  * Ajout des arguments device, newgraph, nxpage et nypage
181  * a des_coef_xi, des_coef_theta et des_coef_phi.
182  * Ajout de la routine des_map_et.
183  *
184  * Revision 1.3 1999/12/15 09:42:02 eric
185  * *** empty log message ***
186  *
187  * Revision 1.2 1999/12/10 12:14:09 eric
188  * Ajout des fonctions des_coef.
189  *
190  * Revision 1.1 1999/12/09 16:37:57 eric
191  * Initial revision
192  *
193  *
194  * $Header: /cvsroot/Lorene/C++/Include/graphique.h,v 1.23 2014/10/13 08:52:34 j_novak Exp $
195  *
196  */
197 
198 #ifndef DOXYGEN_SHOULD_SKIP_THIS
199 
200 namespace Lorene {
201 class Valeur ;
202 class Map ;
203 class Map_et ;
204 class Cmp ;
205 class Scalar ;
206 class Vector ;
207 class Sym_tensor ;
208 class Tenseur ;
209 class Etoile ;
210 class Binaire ;
211 class Bin_ns_ncp ;
212 template<typename TyT> class Evolution ;
213 
214 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
215 
240 void des_profile(const float* uutab, int nx, float xmin, float xmax,
241  const char* nomx, const char* nomy, const char* title,
242  const char* device = 0x0, int nbound = 0,
243  float* xbound = 0x0) ;
244 
262 void des_profile(const float* uutab, int nx, const float *xtab,
263  const char* nomx, const char* nomy, const char* title,
264  const char* device = 0x0, int nbound = 0,
265  float* xbound = 0x0) ;
266 
267 
298 void des_profile_mult(const float* uutab, int nprof, int nx,
299  float xmin, float xmax, const char* nomx,
300  const char* nomy, const char* title, const int* line_style,
301  int ngraph, bool closeit, const char* device = 0x0,
302  int nbound = 0, float* xbound = 0x0) ;
303 
304 
335 void des_profile_mult(const float* uutab, int nprof, int nx,
336  const float* xtab, const char* nomx,
337  const char* nomy, const char* title, const int* line_style,
338  int ngraph, bool closeit, const char* device = 0x0, int nbound = 0,
339  float* xbound = 0x0) ;
340 
358 void des_points(const float *uutab, int nx, float xmin, float xmax,
359  const char* nomx = 0x0, const char* nomy = 0x0, const char* title = 0x0,
360  const char* device = 0x0, int nbound = 0,
361  float* xbound = 0x0) ;
362 
399 void des_equipot(float* uutab, int nx, int ny, float xmin, float xmax,
400  float ymin, float ymax, int ncour, const char* nomx, const char* nomy,
401  const char* title, const char* device = 0x0, int newgraph = 3,
402  int nxpage = 1, int nypage = 1) ;
403 
448 void des_vect(float* vvx, float* vvy, int nx, int ny, float xmin, float xmax,
449  float ymin, float ymax, double scale, double sizefl,
450  const char* nomx, const char* nomy, const char* title, const char* device = 0x0,
451  int newgraph = 3, int nxpage = 1, int nypage = 1) ;
452 
453 
486 void des_domaine_x(const Map& mp, int l0, double x0, const char* device = 0x0,
487  int newgraph = 3, double y_min = -1, double y_max = 1,
488  double z_min = -1, double z_max = 1,
489  const char* nomy = 0x0, const char* nomz = 0x0, const char* title = 0x0,
490  int nxpage = 1, int nypage = 1) ;
491 
492 
525 void des_domaine_y(const Map& mp, int l0, double y0, const char* device = 0x0,
526  int newgraph = 3, double x_min = -1, double x_max = 1,
527  double z_min = -1, double z_max = 1,
528  const char* nomx = 0x0, const char* nomz = 0x0, const char* title = 0x0,
529  int nxpage = 1, int nypage = 1) ;
530 
531 
564 void des_domaine_z(const Map& mp, int l0, double z0, const char* device = 0x0,
565  int newgraph = 3, double x_min = -1, double x_max = 1,
566  double y_min = -1, double y_max = 1,
567  const char* nomx = 0x0, const char* nomz = 0x0, const char* title = 0x0,
568  int nxpage = 1, int nypage = 1) ;
569 
570 
571 
572 
597 void des_coef(const double* cf, int n, double pzero,
598  const char* nomx, const char* nomy, const char* title, const char* device = 0x0,
599  int newgraph = 3, int nxpage = 1, int nypage = 1) ;
600 
646 void des_coef_xi(const Valeur& uu, int l, int k, int j, double pzero = 1.e-14,
647  const char* nomy = 0x0, const char* title = 0x0, const char* device = 0x0,
648  int newgraph = 3, int nxpage = 1, int nypage = 1) ;
649 
650 
689 void des_coef_theta(const Valeur& uu, int l, int k, int i, double pzero = 1.e-14,
690  const char* nomy = 0x0, const char* title = 0x0, const char* device = 0x0,
691  int newgraph = 3, int nxpage = 1, int nypage = 1) ;
692 
693 
732 void des_coef_phi(const Valeur& uu, int l, int j, int i, double pzero = 1.e-14,
733  const char* nomy = 0x0, const char* title = 0x0, const char* device = 0x0,
734  int newgraph = 3, int nxpage = 1, int nypage = 1) ;
735 
751 void des_map_et(const Map_et& mp, int lz) ;
752 
779 void des_profile(const Scalar& uu, double r_min, double r_max,
780  double theta, double phi, const char* nomy = 0x0,
781  const char* title = 0x0, bool draw_bound = true) ;
782 
783 
803 void des_profile(const Scalar& uu, double r_min, double r_max, double scale,
804  double theta, double phi, const char* nomx = 0x0,
805  const char* nomy = 0x0, const char* title= 0x0,
806  bool draw_bound = true) ;
807 
808 
849 void des_profile_mult(const Scalar** uu, int nprof, double r_min, double r_max,
850  const double* theta, const double* phi, double radial_scale = 1,
851  bool closeit = true, const char* nomy = 0x0,
852  const char* title = 0x0, int ngraph = 0, const char* nomx = 0x0,
853  const int* line_style = 0x0, const char* device = 0x0,
854  bool draw_bound = true) ;
855 
871 void des_points(const Scalar& uu,
872  double theta = 0, double phi = 0, const char* nomy = 0x0,
873  const char* title = 0x0, bool draw_bound = true) ;
874 
875 
893 void des_points(const Scalar& uu, double scale,
894  double theta = 0, double phi = 0, const char* nomx = 0x0,
895  const char* nomy = 0x0, const char* title= 0x0,
896  bool draw_bound = true) ;
897 
909 void save_profile(const Scalar& uu, double r_min, double r_max,
910  double theta, double phi, const char* filename) ;
911 
912 
937 void des_meridian(const Scalar& uu, double r_min, double r_max,
938  const char* nomy, int ngraph, const char* device = 0x0,
939  bool closeit = false, bool draw_bound = true) ;
940 
941 
942 
975 void des_surface_x(const Scalar& defsurf, double x0, const char* device = 0x0,
976  int newgraph = 3, double y_min = -1, double y_max = 1,
977  double z_min = -1, double z_max = 1,
978  const char* nomy = 0x0, const char* nomz = 0x0, const char* title = 0x0,
979  int nxpage = 1, int nypage = 1) ;
980 
1013 void des_surface_y(const Scalar& defsurf, double y0, const char* device = 0x0,
1014  int newgraph = 3, double x_min = -1, double x_max = 1,
1015  double z_min = -1, double z_max = 1,
1016  const char* nomx = 0x0, const char* nomz = 0x0, const char* title = 0x0,
1017  int nxpage = 1, int nypage = 1) ;
1018 
1019 
1052 void des_surface_z(const Scalar& defsurf, double z0, const char* device = 0x0,
1053  int newgraph = 3, double x_min = -1, double x_max = 1,
1054  double y_min = -1, double y_max = 1,
1055  const char* nomx = 0x0, const char* nomz = 0x0, const char* title = 0x0,
1056  int nxpage = 1, int nypage = 1) ;
1057 
1058 
1059 
1088 void des_coupe_x(const Scalar& uu, double x0, int nzdes, const char* title = 0x0,
1089  const Scalar* defsurf = 0x0, double zoom = 1.2,
1090  bool draw_bound = true, int ncour = 15, int ny = 100,
1091  int nz = 100) ;
1092 
1093 
1120 void des_coupe_x(const Scalar& uu, double x0, double y_min, double y_max,
1121  double z_min, double z_max, const char* title = 0x0,
1122  const Scalar* defsurf = 0x0, bool draw_bound = true,
1123  int ncour = 15, int ny = 100, int nz = 100) ;
1124 
1125 
1154 void des_coupe_y(const Scalar& uu, double y0, int nzdes, const char* title = 0x0,
1155  const Scalar* defsurf = 0x0, double zoom = 1.2,
1156  bool draw_bound = true, int ncour = 15, int nx = 100,
1157  int nz = 100) ;
1158 
1185 void des_coupe_y(const Scalar& uu, double y0, double x_min, double x_max,
1186  double z_min, double z_max, const char* title = 0x0,
1187  const Scalar* defsurf = 0x0, bool draw_bound = true,
1188  int ncour = 15, int nx = 100, int nz = 100) ;
1189 
1190 
1219 void des_coupe_z(const Scalar& uu, double z0, int nzdes, const char* title = 0x0,
1220  const Scalar* defsurf = 0x0, double zoom = 1.2,
1221  bool draw_bound = true, int ncour = 15, int nx = 100,
1222  int ny = 100) ;
1223 
1250 void des_coupe_z(const Scalar& uu, double z0, double x_min, double x_max,
1251  double y_min, double y_max, const char* title = 0x0,
1252  const Scalar* defsurf = 0x0, bool draw_bound = true,
1253  int ncour = 15, int nx = 100, int ny = 100) ;
1254 
1255 
1299 void des_coupe_vect_x(const Vector& vv, double x0, double scale, double sizefl,
1300  int nzdes, const char* title = 0x0, const Scalar* defsurf = 0x0,
1301  double zoom = 1.2, bool draw_bound = true,
1302  int ny = 20, int nz = 20) ;
1303 
1304 
1337 void des_coupe_vect_x(const Vector& vv, double x0, double scale, double
1338  sizefl, double y_min, double y_max, double z_min,
1339  double z_max, const char* title = 0x0, const Scalar* defsurf = 0x0,
1340  bool draw_bound = true, int ny = 20, int nz = 20) ;
1341 
1376 void des_coupe_vect_y(const Vector& vv, double y0, double scale, double sizefl,
1377  int nzdes, const char* title = 0x0, const Scalar* defsurf = 0x0,
1378  double zoom = 1.2, bool draw_bound = true,
1379  int nx = 20, int nz = 20) ;
1380 
1381 
1414 void des_coupe_vect_y(const Vector& vv, double y0, double scale, double
1415  sizefl, double x_min, double x_max, double z_min,
1416  double z_max, const char* title = 0x0, const Scalar* defsurf = 0x0,
1417  bool draw_bound = true, int nx = 20, int nz = 20) ;
1418 
1453 void des_coupe_vect_z(const Vector& vv, double z0, double scale, double sizefl,
1454  int nzdes, const char* title = 0x0, const Scalar* defsurf = 0x0,
1455  double zoom = 1.2, bool draw_bound = true,
1456  int nx = 20, int ny = 20) ;
1457 
1458 
1491 void des_coupe_vect_z(const Vector& vv, double z0, double scale, double
1492  sizefl, double x_min, double x_max, double y_min,
1493  double y_max, const char* title = 0x0, const Scalar* defsurf = 0x0,
1494  bool draw_bound = true, int nx = 20, int ny = 20) ;
1495 
1496 
1530 void des_meridian(const Sym_tensor& hh, double r_min, double r_max,
1531  const char* name, int ngraph0, const char* device = 0x0,
1532  bool closeit = false) ;
1533 
1534 
1561 void des_profile(const Cmp& uu, double r_min, double r_max,
1562  double theta, double phi, const char* nomy = 0x0,
1563  const char* title = 0x0 ) ;
1564 
1565 
1584 void des_profile(const Cmp& uu, double r_min, double r_max, double scale,
1585  double theta, double phi, const char* nomx = 0x0,
1586  const char* nomy = 0x0, const char* title= 0x0) ;
1587 
1588 
1617 void des_coupe_x(const Cmp& uu, double x0, int nzdes, const char* title = 0x0,
1618  const Cmp* defsurf = 0x0, double zoom = 1.2,
1619  bool draw_bound = true, int ncour = 15, int ny = 100,
1620  int nz = 100) ;
1621 
1622 
1649 void des_coupe_x(const Cmp& uu, double x0, double y_min, double y_max,
1650  double z_min, double z_max, const char* title = 0x0,
1651  const Cmp* defsurf = 0x0, bool draw_bound = true,
1652  int ncour = 15, int ny = 100, int nz = 100) ;
1653 
1654 
1683 void des_coupe_y(const Cmp& uu, double y0, int nzdes, const char* title = 0x0,
1684  const Cmp* defsurf = 0x0, double zoom = 1.2,
1685  bool draw_bound = true, int ncour = 15, int nx = 100,
1686  int nz = 100) ;
1687 
1714 void des_coupe_y(const Cmp& uu, double y0, double x_min, double x_max,
1715  double z_min, double z_max, const char* title = 0x0,
1716  const Cmp* defsurf = 0x0, bool draw_bound = true,
1717  int ncour = 15, int nx = 100, int nz = 100) ;
1718 
1719 
1748 void des_coupe_z(const Cmp& uu, double z0, int nzdes, const char* title = 0x0,
1749  const Cmp* defsurf = 0x0, double zoom = 1.2,
1750  bool draw_bound = true, int ncour = 15, int nx = 100,
1751  int ny = 100) ;
1752 
1779 void des_coupe_z(const Cmp& uu, double z0, double x_min, double x_max,
1780  double y_min, double y_max, const char* title = 0x0,
1781  const Cmp* defsurf = 0x0, bool draw_bound = true,
1782  int ncour = 15, int nx = 100, int ny = 100) ;
1783 
1784 
1817 void des_bi_coupe_y(const Cmp& uu, double y0, int nzdes, const char* title = 0x0,
1818  const Cmp* defsurf = 0x0, const Cmp* defsurf2 = 0x0,
1819  double zoom = 1.2,
1820  bool draw_bound = true, int ncour = 15, int nx = 100,
1821  int nz = 100) ;
1822 
1853 void des_bi_coupe_y(const Cmp& uu, double y0, double x_min, double x_max,
1854  double z_min, double z_max, const char* title = 0x0,
1855  const Cmp* defsurf = 0x0, const Cmp* defsurf2 = 0x0,
1856  bool draw_bound = true,
1857  int ncour = 15, int nx = 100, int nz = 100) ;
1858 
1859 
1892 void des_coupe_bin_x(const Cmp& uu1, const Cmp& uu2, double x0, double y_min,
1893  double y_max, double z_min, double z_max, const char* title,
1894  const Cmp* defsurf1 = 0x0, const Cmp* defsurf2 = 0x0,
1895  bool draw_bound = true, int ncour = 15, int ny = 100,
1896  int nz = 100) ;
1897 
1898 
1931 void des_coupe_bin_y(const Cmp& uu1, const Cmp& uu2, double y0, double x_min,
1932  double x_max, double z_min, double z_max, const char* title,
1933  const Cmp* defsurf1 = 0x0, const Cmp* defsurf2 = 0x0,
1934  bool draw_bound = true, int ncour = 15, int nx = 100,
1935  int nz = 100) ;
1936 
1937 
1970 void des_coupe_bin_z(const Cmp& uu1, const Cmp& uu2, double z0, double x_min,
1971  double x_max, double y_min, double y_max, const char* title,
1972  const Cmp* defsurf1 = 0x0, const Cmp* defsurf2 = 0x0,
1973  bool draw_bound = true, int ncour = 15, int nx = 100,
1974  int ny = 100) ;
1975 
1976 
1977 
2010 void des_surface_x(const Cmp& defsurf, double x0, const char* device = 0x0,
2011  int newgraph = 3, double y_min = -1, double y_max = 1,
2012  double z_min = -1, double z_max = 1,
2013  const char* nomy = 0x0, const char* nomz = 0x0, const char* title = 0x0,
2014  int nxpage = 1, int nypage = 1) ;
2015 
2048 void des_surface_y(const Cmp& defsurf, double y0, const char* device = 0x0,
2049  int newgraph = 3, double x_min = -1, double x_max = 1,
2050  double z_min = -1, double z_max = 1,
2051  const char* nomx = 0x0, const char* nomz = 0x0, const char* title = 0x0,
2052  int nxpage = 1, int nypage = 1) ;
2053 
2054 
2087 void des_surface_z(const Cmp& defsurf, double z0, const char* device = 0x0,
2088  int newgraph = 3, double x_min = -1, double x_max = 1,
2089  double y_min = -1, double y_max = 1,
2090  const char* nomx = 0x0, const char* nomz = 0x0, const char* title = 0x0,
2091  int nxpage = 1, int nypage = 1) ;
2092 
2093 
2094 
2138 void des_coupe_vect_x(const Tenseur& vv, double x0, double scale, double sizefl,
2139  int nzdes, const char* title = 0x0, const Cmp* defsurf = 0x0,
2140  double zoom = 1.2, bool draw_bound = true,
2141  int ny = 20, int nz = 20) ;
2142 
2143 
2176 void des_coupe_vect_x(const Tenseur& vv, double x0, double scale, double
2177  sizefl, double y_min, double y_max, double z_min,
2178  double z_max, const char* title = 0x0, const Cmp* defsurf = 0x0,
2179  bool draw_bound = true, int ny = 20, int nz = 20) ;
2180 
2215 void des_coupe_vect_y(const Tenseur& vv, double y0, double scale, double sizefl,
2216  int nzdes, const char* title = 0x0, const Cmp* defsurf = 0x0,
2217  double zoom = 1.2, bool draw_bound = true,
2218  int nx = 20, int nz = 20) ;
2219 
2220 
2253 void des_coupe_vect_y(const Tenseur& vv, double y0, double scale, double
2254  sizefl, double x_min, double x_max, double z_min,
2255  double z_max, const char* title = 0x0, const Cmp* defsurf = 0x0,
2256  bool draw_bound = true, int nx = 20, int nz = 20) ;
2257 
2292 void des_coupe_vect_z(const Tenseur& vv, double z0, double scale, double sizefl,
2293  int nzdes, const char* title = 0x0, const Cmp* defsurf = 0x0,
2294  double zoom = 1.2, bool draw_bound = true,
2295  int nx = 20, int ny = 20) ;
2296 
2297 
2330 void des_coupe_vect_z(const Tenseur& vv, double z0, double scale, double
2331  sizefl, double x_min, double x_max, double y_min,
2332  double y_max, const char* title = 0x0, const Cmp* defsurf = 0x0,
2333  bool draw_bound = true, int nx = 20, int ny = 20) ;
2334 
2335 
2374 void des_vect_bin_x(const Tenseur& vv1, const Tenseur& vv2, double x0,
2375  double scale, double sizefl, double y_min, double y_max,
2376  double z_min, double z_max, const char* title,
2377  const Cmp* defsurf1 = 0x0, const Cmp* defsurf2 = 0x0,
2378  bool draw_bound = true, int ny = 20, int nz = 20) ;
2379 
2380 
2419 void des_vect_bin_y(const Tenseur& vv1, const Tenseur& vv2, double x0,
2420  double scale, double sizefl, double x_min, double x_max,
2421  double z_min, double z_max, const char* title,
2422  const Cmp* defsurf1 = 0x0, const Cmp* defsurf2 = 0x0,
2423  bool draw_bound = true, int nx = 20, int nz = 20) ;
2424 
2425 
2464 void des_vect_bin_z(const Tenseur& vv1, const Tenseur& vv2, double x0,
2465  double scale, double sizefl, double x_min, double x_max,
2466  double y_min, double y_max, const char* title,
2467  const Cmp* defsurf1 = 0x0, const Cmp* defsurf2 = 0x0,
2468  bool draw_bound = true, int nx = 20, int ny = 20) ;
2469 
2470 
2503 void des_evol(const Evolution<double>& uu, const char* nomy = 0x0,
2504  const char* title = 0x0, int ngraph = 0, const char* device = 0x0,
2505  bool closeit = false, bool show_time = true, const char* nomx = 0x0) ;
2506 
2531 void des_evol(const Evolution<double>& uu, int j_min, int j_max,
2532  const char* nomy = 0x0, const char* title = 0x0,
2533  int ngraph = 0, const char* device = 0x0, bool closeit = false,
2534  bool show_time = true, const char* nomx = 0x0) ;
2535 
2536 
2540 }
2541 #endif
des_vect_bin_z
void des_vect_bin_z(const Tenseur &vv1, const Tenseur &vv2, double x0, double scale, double sizefl, double x_min, double x_max, double y_min, double y_max, const char *title, const Cmp *defsurf1=0x0, const Cmp *defsurf2=0x0, bool draw_bound=true, int nx=20, int ny=20)
Plots the sum of two vectors in a plane Z=constant.
des_coupe_bin_x
void des_coupe_bin_x(const Cmp &uu1, const Cmp &uu2, double x0, double y_min, double y_max, double z_min, double z_max, const char *title, const Cmp *defsurf1=0x0, const Cmp *defsurf2=0x0, bool draw_bound=true, int ncour=15, int ny=100, int nz=100)
Draws isocontour lines of a the sum of two Cmp 's in a plane X=constant.
des_profile
void des_profile(const float *uutab, int nx, float xmin, float xmax, const char *nomx, const char *nomy, const char *title, const char *device=0x0, int nbound=0, float *xbound=0x0)
Basic routine for drawing a single profile with uniform x sampling.
Definition: des_profile.C:91
des_surface_y
void des_surface_y(const Scalar &defsurf, double y0, const char *device=0x0, int newgraph=3, double x_min=-1, double x_max=1, double z_min=-1, double z_max=1, const char *nomx=0x0, const char *nomz=0x0, const char *title=0x0, int nxpage=1, int nypage=1)
Basic routine for drawing a stellar surface in a plane Y=constant.
des_coupe_z
void des_coupe_z(const Scalar &uu, double z0, int nzdes, const char *title=0x0, const Scalar *defsurf=0x0, double zoom=1.2, bool draw_bound=true, int ncour=15, int nx=100, int ny=100)
Draws isocontour lines of a Scalar in a plane Z=constant.
des_vect_bin_x
void des_vect_bin_x(const Tenseur &vv1, const Tenseur &vv2, double x0, double scale, double sizefl, double y_min, double y_max, double z_min, double z_max, const char *title, const Cmp *defsurf1=0x0, const Cmp *defsurf2=0x0, bool draw_bound=true, int ny=20, int nz=20)
Plots the sum of two vectors in a plane X=constant.
des_coupe_bin_y
void des_coupe_bin_y(const Cmp &uu1, const Cmp &uu2, double y0, double x_min, double x_max, double z_min, double z_max, const char *title, const Cmp *defsurf1=0x0, const Cmp *defsurf2=0x0, bool draw_bound=true, int ncour=15, int nx=100, int nz=100)
Draws isocontour lines of a the sum of two Cmp 's in a plane Y=constant.
Lorene
Lorene prototypes.
Definition: app_hor.h:64
des_coef_xi
void des_coef_xi(const Valeur &uu, int l, int k, int j, double pzero=1.e-14, const char *nomy=0x0, const char *title=0x0, const char *device=0x0, int newgraph=3, int nxpage=1, int nypage=1)
Plots the coefficients of the spectral expansion in of a Valeur .
des_surface_z
void des_surface_z(const Scalar &defsurf, double z0, const char *device=0x0, int newgraph=3, double x_min=-1, double x_max=1, double y_min=-1, double y_max=1, const char *nomx=0x0, const char *nomz=0x0, const char *title=0x0, int nxpage=1, int nypage=1)
Basic routine for drawing a stellar surface in a plane Z=constant.
des_vect_bin_y
void des_vect_bin_y(const Tenseur &vv1, const Tenseur &vv2, double x0, double scale, double sizefl, double x_min, double x_max, double z_min, double z_max, const char *title, const Cmp *defsurf1=0x0, const Cmp *defsurf2=0x0, bool draw_bound=true, int nx=20, int nz=20)
Plots the sum of two vectors in a plane Y=constant.
des_bi_coupe_y
void des_bi_coupe_y(const Cmp &uu, double y0, int nzdes, const char *title=0x0, const Cmp *defsurf=0x0, const Cmp *defsurf2=0x0, double zoom=1.2, bool draw_bound=true, int ncour=15, int nx=100, int nz=100)
Draws isocontour lines of a Cmp in a plane Y=constant.
Lorene::des_vect
void des_vect(float *vvx, float *vvy, int nx, int ny, float xmin, float xmax, float ymin, float ymax, double scale, double sizefl, const char *nomx, const char *nomy, const char *title, const char *device, int newgraph, int nxpage, int nypage)
Basic routine for plotting vector field.
Definition: des_vect.C:72
des_coupe_bin_z
void des_coupe_bin_z(const Cmp &uu1, const Cmp &uu2, double z0, double x_min, double x_max, double y_min, double y_max, const char *title, const Cmp *defsurf1=0x0, const Cmp *defsurf2=0x0, bool draw_bound=true, int ncour=15, int nx=100, int ny=100)
Draws isocontour lines of a the sum of two Cmp 's in a plane Z=constant.
Lorene::des_coef
void des_coef(const double *cf, int n, double pzero, const char *nomx, const char *nomy, const char *title, const char *device, int newgraph, int nxpage, int nypage)
Basic routine for drawing spectral coefficients.
Definition: des_coef.C:75
des_coef_phi
void des_coef_phi(const Valeur &uu, int l, int j, int i, double pzero=1.e-14, const char *nomy=0x0, const char *title=0x0, const char *device=0x0, int newgraph=3, int nxpage=1, int nypage=1)
Plots the coefficients of the spectral expansion in of a Valeur .
des_map_et
void des_map_et(const Map_et &mp, int lz)
Plots the coefficients of the functions and of a mapping of class Map_et .
Lorene::des_evol
void des_evol(const Evolution< double > &uu, const char *nomy, const char *title, int ngraph, const char *device, bool closeit, bool show_time, const char *nomx)
Plots the variation of some quantity against time.
Definition: des_evolution.C:64
des_coupe_vect_x
void des_coupe_vect_x(const Vector &vv, double x0, double scale, double sizefl, int nzdes, const char *title=0x0, const Scalar *defsurf=0x0, double zoom=1.2, bool draw_bound=true, int ny=20, int nz=20)
Plots a vector field in a plane X=constant.
des_meridian
void des_meridian(const Scalar &uu, double r_min, double r_max, const char *nomy, int ngraph, const char *device=0x0, bool closeit=false, bool draw_bound=true)
Draws 5 profiles of a scalar field along various radial axes in two meridional planes and .
des_profile_mult
void des_profile_mult(const float *uutab, int nprof, int nx, float xmin, float xmax, const char *nomx, const char *nomy, const char *title, const int *line_style, int ngraph, bool closeit, const char *device=0x0, int nbound=0, float *xbound=0x0)
Basic routine for drawing multiple profiles with uniform x sampling.
Definition: des_profile.C:183
save_profile
void save_profile(const Scalar &uu, double r_min, double r_max, double theta, double phi, const char *filename)
Saves in a file the profile of a Scalar along some radial axis determined by a fixed value of .
des_domaine_y
void des_domaine_y(const Map &mp, int l0, double y0, const char *device=0x0, int newgraph=3, double x_min=-1, double x_max=1, double z_min=-1, double z_max=1, const char *nomx=0x0, const char *nomz=0x0, const char *title=0x0, int nxpage=1, int nypage=1)
Basic routine for drawing the outer boundary of a given domain in a plane Y=constant.
des_coupe_vect_y
void des_coupe_vect_y(const Vector &vv, double y0, double scale, double sizefl, int nzdes, const char *title=0x0, const Scalar *defsurf=0x0, double zoom=1.2, bool draw_bound=true, int nx=20, int nz=20)
Plots a vector field in a plane Y=constant.
Lorene::des_equipot
void des_equipot(float *uutab, int nx, int ny, float xmin, float xmax, float ymin, float ymax, int ncour, const char *nomx, const char *nomy, const char *title, const char *device, int newgraph, int nxpage, int nypage)
Basic routine for drawing isocontours.
Definition: des_equipot.C:74
des_surface_x
void des_surface_x(const Scalar &defsurf, double x0, const char *device=0x0, int newgraph=3, double y_min=-1, double y_max=1, double z_min=-1, double z_max=1, const char *nomy=0x0, const char *nomz=0x0, const char *title=0x0, int nxpage=1, int nypage=1)
Basic routine for drawing a stellar surface in a plane X=constant.
des_domaine_x
void des_domaine_x(const Map &mp, int l0, double x0, const char *device=0x0, int newgraph=3, double y_min=-1, double y_max=1, double z_min=-1, double z_max=1, const char *nomy=0x0, const char *nomz=0x0, const char *title=0x0, int nxpage=1, int nypage=1)
Basic routine for drawing the outer boundary of a given domain in a plane X=constant.
des_coef_theta
void des_coef_theta(const Valeur &uu, int l, int k, int i, double pzero=1.e-14, const char *nomy=0x0, const char *title=0x0, const char *device=0x0, int newgraph=3, int nxpage=1, int nypage=1)
Plots the coefficients of the spectral expansion in of a Valeur .
des_points
void des_points(const float *uutab, int nx, float xmin, float xmax, const char *nomx=0x0, const char *nomy=0x0, const char *title=0x0, const char *device=0x0, int nbound=0, float *xbound=0x0)
Basic routine for plotting points using grid locations.
des_coupe_vect_z
void des_coupe_vect_z(const Vector &vv, double z0, double scale, double sizefl, int nzdes, const char *title=0x0, const Scalar *defsurf=0x0, double zoom=1.2, bool draw_bound=true, int nx=20, int ny=20)
Plots a vector field in a plane Z=constant.
des_domaine_z
void des_domaine_z(const Map &mp, int l0, double z0, const char *device=0x0, int newgraph=3, double x_min=-1, double x_max=1, double y_min=-1, double y_max=1, const char *nomx=0x0, const char *nomz=0x0, const char *title=0x0, int nxpage=1, int nypage=1)
Basic routine for drawing the outer boundary of a given domain in a plane Z=constant.
des_coupe_x
void des_coupe_x(const Scalar &uu, double x0, int nzdes, const char *title=0x0, const Scalar *defsurf=0x0, double zoom=1.2, bool draw_bound=true, int ncour=15, int ny=100, int nz=100)
Draws isocontour lines of a Scalar in a plane X=constant.
des_coupe_y
void des_coupe_y(const Scalar &uu, double y0, int nzdes, const char *title=0x0, const Scalar *defsurf=0x0, double zoom=1.2, bool draw_bound=true, int ncour=15, int nx=100, int nz=100)
Draws isocontour lines of a Scalar in a plane Y=constant.