Debian Codegraph @

C++/Include/graphique.h

raw symbols SCIP
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
216 /**
217 * \defgroup grafbasic Low level graphical routines.
218 * \ingroup (graphics)
219 * @{
220 */
221
222 /** Basic routine for drawing a single profile with uniform x sampling.
223 * A profile is a function y=y(x).
224 *
225 * @param uutab [input] Array (size: \c nx ) of y values to be drawn
226 * (the x sampling is supposed to be uniform).
227 * @param nx [input] Number of points
228 * @param xmin [input] lowest value of x
229 * @param xmax [input] highest value of x
230 * @param nomx [input] x legend of the figure
231 * @param nomy [input] y legend of the figure
232 * @param title [input] title of the figure
233 * @param device [input] PGPLOT device (default value = 0x0, will result in
234 * interactive choice)
235 * @param nbound [input] number of domain boundaries to be drawn (default value
236 * = 0, meaning that the domain boundaries are not drawn)
237 * @param xbound [input] array of size \c nbound containing the abscidia of
238 * each domain boundary
239 */
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
245 /** Basic routine for drawing a single profile with arbitray x sampling.
246 * A profile is a function y=y(x).
247 *
248 * @param uutab [input] Array (size: \c nx ) of y values to be drawn
249 * (the x sampling is supposed to be uniform).
250 * @param nx [input] Number of points
251 * @param xtab [input] Array (size: \c nx ) of the x sampling.
252 * @param nomx [input] x legend of the figure
253 * @param nomy [input] y legend of the figure
254 * @param title [input] title of the figure
255 * @param device [input] PGPLOT device (default value = 0x0, will result in
256 * interactive choice)
257 * @param nbound [input] number of domain boundaries to be drawn (default value
258 * = 0, meaning that the domain boundaries are not drawn)
259 * @param xbound [input] array of size \c nbound containing the abscidia of
260 * each domain boundary
261 */
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
268 /** Basic routine for drawing multiple profiles with uniform x sampling.
269 * A profile is a function y=y(x).
270 *
271 * @param uutab [input] Array (size: \c nprof *\c nx ) of y values to be drawn
272 * (the x sampling is supposed to be uniform).
273 * @param nprof [input] Number of profiles
274 * @param nx [input] Number of points for each profile
275 * @param xmin [input] lowest value of x
276 * @param xmax [input] highest value of x
277 * @param nomx [input] x legend of the figure
278 * @param nomy [input] y legend of the figure
279 * @param title [input] title of the figure
280 * @param line_style [input] Array (size \c nprof ) defining the line style
281 * for each plot: the possible values are \c line_style[i] = 1
282 * (full line), 2 (dashed), 3 (dot-dash-dot-dash), 4 (dotted), 5
283 * (dash-dot-dot-dot). The value = 0x0 corresponds to a cyclic sequence
284 * of the above styles.
285 * @param ngraph [input] Index of the graphic device (in the range [0,99])
286 * to be used for the plot: if this device has never been used or is closed,
287 * it will be opened with the name \c device provided by the last
288 * argument.
289 * @param closeit [input] determines whether the device must be closed or not
290 * after the plot has been performed
291 * @param device [input] PGPLOT device (default value = 0x0, will result in
292 * interactive choice)
293 * @param nbound [input] number of domain boundaries to be drawn (default value
294 * = 0, meaning that the domain boundaries are not drawn)
295 * @param xbound [input] array of size \c nbound containing the abscidia of
296 * each domain boundary
297 */
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
305 /** Basic routine for drawing multiple profiles with arbitrary x sampling.
306 * A profile is a function y=y(x).
307 *
308 * @param uutab [input] Array (size: \c nprof *\c nx ) of y values to be drawn
309 * (the x sampling is supposed to be uniform).
310 * @param nprof [input] Number of profiles
311 * @param nx [input] Number of points for each profile
312 * @param xtab [input] Array (size: \c nprof *\c nx ) of x values for each
313 * profile
314 * @param nomx [input] x legend of the figure
315 * @param nomy [input] y legend of the figure
316 * @param title [input] title of the figure
317 * @param line_style [input] Array (size \c nprof ) defining the line style
318 * for each plot: the possible values are \c line_style[i] = 1
319 * (full line), 2 (dashed), 3 (dot-dash-dot-dash), 4 (dotted), 5
320 * (dash-dot-dot-dot). The value = 0x0 corresponds to a cyclic sequence
321 * of the above styles.
322 * @param ngraph [input] Index of the graphic device (in the range [0,99])
323 * to be used for the plot: if this device has never been used or is closed,
324 * it will be opened with the name \c device provided by the last
325 * argument.
326 * @param closeit [input] determines whether the device must be closed or not
327 * after the plot has been performed
328 * @param device [input] PGPLOT device (default value = 0x0, will result in
329 * interactive choice)
330 * @param nbound [input] number of domain boundaries to be drawn (default value
331 * = 0, meaning that the domain boundaries are not drawn)
332 * @param xbound [input] array of size \c nbound containing the abscidia of
333 * each domain boundary
334 */
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
341 /** Basic routine for plotting points using grid locations.
342 * A profile is a function y=y(x).
343 *
344 * @param uutab [input] Array (size: \c nx ) of y values to be drawn
345 * @param nx [input] Number of points
346 * @param xmin [input] lowest value of x
347 * @param xmax [input] highest value of x
348 * @param nomx [input] x legend of the figure
349 * @param nomy [input] y legend of the figure
350 * @param title [input] title of the figure
351 * @param device [input] PGPLOT device (default value = 0x0, will result in
352 * interactive choice)
353 * @param nbound [input] number of domain boundaries to be drawn (default value
354 * = 0, meaning that the domain boundaries are not drawn)
355 * @param xbound [input] array of size \c nbound containing the abscidia of
356 * each domain boundary
357 */
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
363 /** Basic routine for drawing isocontours.
364 *
365 * Solid (resp. dashed) lines correspond to positive (resp. negative)
366 * values of the field.
367 *
368 * @param uutab [input] field to be drawn;
369 * the value of the field a the point of coordinates \n
370 * x_i = xmin + i (xmax-xmin)/(nx-1) 0 <= i <= nx-1 \n
371 * y_j = ymin + j (ymax-ymin)/(ny-1) 0 <= j <= ny-1 \n
372 * must be stored at the following position in the float 1-D array uu : \n
373 * index = j * nx + i
374 * @param nx [input] number of points in the x direction
375 * @param ny [input] number of points in the y direction
376 * @param xmin [input] lowest value of x
377 * @param xmax [input] highest value of x
378 * @param ymin [input] lowest value of y
379 * @param ymax [input] highest value of y
380 * @param ncour [input] number of isocontour lines
381 * @param nomx [input] x legend of the figure
382 * @param nomy [input] y legend of the figure
383 * @param title [input] title of the figure
384 * @param device [input] PGPLOT device (default value = 0x0)
385 * @param newgraph [input] controls the opening/closing of the graphic device: \n
386 * 0 : does nothing (the device must be already opened) \n
387 * 1 : opens the device but does not close it at the end \n
388 * 2 : closes the device at the end but does not open it at
389 * the beginning \n
390 * 3 (default value) : opens and closes the device
391 *
392 * @param nxpage [input] number of graphs in the horizontal direction of the
393 * display window (meaningfull only if
394 * \c newgraph = 1 or 3) (default value = 1)
395 * @param nypage [input] number of graphs in the vertical direction of the
396 * display window (meaningfull only if
397 * \c newgraph = 1 or 3) (default value = 1)
398 */
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
404 /** Basic routine for plotting vector field.
405 *
406 *
407 * @param vvx [input] x-component of the vector field to be drawn ;
408 * the value of the field a the point of coordinates \n
409 * x_i = xmin + i (xmax-xmin)/(nx-1) 0 <= i <= nx-1 \n
410 * y_j = ymin + j (ymax-ymin)/(ny-1) 0 <= j <= ny-1 \n
411 * must be stored at the following position in the float 1-D array uu : \n
412 * index = j * nx + i
413 * @param vvy [input] y-component of the vector field to be drawn ;
414 * same storage as \c vvx .
415 * @param nx [input] number of points in the x direction
416 * @param ny [input] number of points in the y direction
417 * @param xmin [input] lowest value of x
418 * @param xmax [input] highest value of x
419 * @param ymin [input] lowest value of y
420 * @param ymax [input] highest value of y
421 * @param scale [input] controls the length of the drawn arrows; if \c scale
422 * is negative, the length is determined automatically by
423 * the routine: \n
424 * \c scale = -1 : max. length = step of the rectangular
425 * grid \n
426 * \c scale = -2 : max. length = 2* step of the rectangular
427 * grid \n
428 * etc...
429 * @param sizefl [input] size of the arrows extremities (standard value: 1)
430 * @param nomx [input] x legend of the figure
431 * @param nomy [input] y legend of the figure
432 * @param title [input] title of the figure
433 * @param device [input] PGPLOT device (default value = 0x0)
434 * @param newgraph [input] controls the opening/closing of the graphic device: \n
435 * 0 : does nothing (the device must be already opened) \n
436 * 1 : opens the device but does not close it at the end \n
437 * 2 : closes the device at the end but does not open it at
438 * the beginning \n
439 * 3 (default value) : opens and closes the device
440 *
441 * @param nxpage [input] number of graphs in the horizontal direction of the
442 * display window (meaningfull only if
443 * \c newgraph = 1 or 3) (default value = 1)
444 * @param nypage [input] number of graphs in the vertical direction of the
445 * display window (meaningfull only if
446 * \c newgraph = 1 or 3) (default value = 1)
447 */
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
454 /** Basic routine for drawing the outer boundary of a given domain
455 * in a plane X=constant.
456 *
457 * X is the Cartesian coordinate relative to the absolute frame.
458 * The domain outer boundary is defined by \f$\xi = 1\f$.
459 *
460 * @param mp [input] Mapping defining the various domains
461 * @param l0 [input] Index of the domain, the outer boundary of which is
462 * to be drawn
463 * @param x0 [input] value of the coordinate X which defines the plane
464 * of the drawing
465 * @param device [input] PGPLOT device (default value = 0x0)
466 * @param newgraph [input] controls the opening/closing of the graphic device:\n
467 * 0 : does nothing (the device must be already opened) \n
468 * 1 : opens the device but does not close it at the end \n
469 * 2 : closes the device at the end but does not open it at
470 * the beginning \n
471 * 3 (default value) : opens and closes the device
472 * @param y_min [input] lowest value of absol. coord. Y (default value = -1)
473 * @param y_max [input] highest value of absol. coord. Y (default value = 1)
474 * @param z_min [input] lowest value of absol. coord. Z (default value = -1)
475 * @param z_max [input] highest value of absol. coord. Z (default value = 1)
476 * @param nomy [input] y legend of the figure (default value = 0x0)
477 * @param nomz [input] z legend of the figure (default value = 0x0)
478 * @param title [input] title of the figure (default value = 0x0)
479 * @param nxpage [input] number of graphs in the horizontal direction of the
480 * display window (meaningfull only if
481 * \c newgraph = 1 or 3) (default value = 1)
482 * @param nypage [input] number of graphs in the vertical direction of the
483 * display window (meaningfull only if
484 * \c newgraph = 1 or 3) (default value = 1)
485 */
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
493 /** Basic routine for drawing the outer boundary of a given domain
494 * in a plane Y=constant.
495 *
496 * Y is the Cartesian coordinate relative to the absolute frame.
497 * The domain outer boundary is defined by \f$\xi = 1\f$.
498 *
499 * @param mp [input] Mapping defining the various domains
500 * @param l0 [input] Index of the domain, the outer boundary of which is
501 * to be drawn
502 * @param y0 [input] value of the coordinate Y which defines the plane
503 * of the drawing
504 * @param device [input] PGPLOT device (default value = 0x0)
505 * @param newgraph [input] controls the opening/closing of the graphic device: \n
506 * 0 : does nothing (the device must be already opened) \n
507 * 1 : opens the device but does not close it at the end \n
508 * 2 : closes the device at the end but does not open it at
509 * the beginning \n
510 * 3 (default value) : opens and closes the device
511 * @param x_min [input] lowest value of absol. coord. X (default value = -1)
512 * @param x_max [input] highest value of absol. coord. X (default value = 1)
513 * @param z_min [input] lowest value of absol. coord. Z (default value = -1)
514 * @param z_max [input] highest value of absol. coord. Z (default value = 1)
515 * @param nomx [input] x legend of the figure (default value = 0x0)
516 * @param nomz [input] z legend of the figure (default value = 0x0)
517 * @param title [input] title of the figure (default value = 0x0)
518 * @param nxpage [input] number of graphs in the horizontal direction of the
519 * display window (meaningfull only if
520 * \c newgraph = 1 or 3) (default value = 1)
521 * @param nypage [input] number of graphs in the vertical direction of the
522 * display window (meaningfull only if
523 * \c newgraph = 1 or 3) (default value = 1)
524 */
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
532 /** Basic routine for drawing the outer boundary of a given domain
533 * in a plane Z=constant.
534 *
535 * Z is the Cartesian coordinate relative to the absolute frame.
536 * The domain outer boundary is defined by \f$\xi = 1\f$.
537 *
538 * @param mp [input] Mapping defining the various domains
539 * @param l0 [input] Index of the domain, the outer boundary of which is
540 * to be drawn
541 * @param z0 [input] value of the coordinate Z which defines the plane
542 * of the drawing
543 * @param device [input] PGPLOT device (default value = 0x0)
544 * @param newgraph [input] controls the opening/closing of the graphic device: \n
545 * 0 : does nothing (the device must be already opened) \n
546 * 1 : opens the device but does not close it at the end \n
547 * 2 : closes the device at the end but does not open it at
548 * the beginning \n
549 * 3 (default value) : opens and closes the device
550 * @param x_min [input] lowest value of absol. coord. X (default value = -1)
551 * @param x_max [input] highest value of absol. coord. X (default value = 1)
552 * @param y_min [input] lowest value of absol. coord. Y (default value = -1)
553 * @param y_max [input] highest value of absol. coord. Y (default value = 1)
554 * @param nomx [input] x legend of the figure (default value = 0x0)
555 * @param nomy [input] y legend of the figure (default value = 0x0)
556 * @param title [input] title of the figure (default value = 0x0)
557 * @param nxpage [input] number of graphs in the horizontal direction of the
558 * display window (meaningfull only if
559 * \c newgraph = 1 or 3) (default value = 1)
560 * @param nypage [input] number of graphs in the vertical direction of the
561 * display window (meaningfull only if
562 * \c newgraph = 1 or 3) (default value = 1)
563 */
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
573 /** Basic routine for drawing spectral coefficients.
574 *
575 * @param cf [input] 1-D array of the coefficients to be drawn (size: \c n )
576 * @param n [input] number of coefficients
577 * @param pzero [input] positive number under which (in absolute value)
578 * a coefficient will be considered as zero
579 * @param nomx [input] x legend of the figure
580 * @param nomy [input] y legend of the figure
581 * @param title [input] title of the figure
582 * @param device [input] PGPLOT device (default value = 0x0)
583 * @param newgraph [input] controls the opening/closing of the graphic device: \n
584 * 0 : does nothing (the device must be already opened) \n
585 * 1 : opens the device but does not close it at the end \n
586 * 2 : closes the device at the end but does not open it at
587 * the beginning \n
588 * 3 (default value) : opens and closes the device
589 *
590 * @param nxpage [input] number of graphs in the horizontal direction of the
591 * display window (meaningfull only if
592 * \c newgraph = 1 or 3) (default value = 1)
593 * @param nypage [input] number of graphs in the vertical direction of the
594 * display window (meaningfull only if
595 * \c newgraph = 1 or 3) (default value = 1)
596 */
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
601 /** @} */
602
603 /**
604 * \defgroup grafspec Plots of spectral coefficients.
605 * \ingroup (graphics)
606 * @{
607 */
608
609 /** Plots the coefficients of the spectral expansion in \f$\xi\f$ of a \c Valeur .
610 *
611 * This routine performs a logarithmic plot of the coefficients of the
612 * \f$\xi\f$ expansion of the coefficient which is in front of a given
613 * \f$\phi'\f$ basis function (index \c k ) and a given \f$\theta'\f$
614 * basis function (index \c j ) in the general spectral expansion of a
615 * field. The plotted quantities are the logarithm of the absolute value
616 * of the coefficients, using solid lines (resp. dashed lines) for
617 * positive coefficients (resp. negative coefficients).
618 *
619 * @param uu [input] \c Valeur the \f$\xi\f$ coefficients of which are to
620 * be plotted
621 * @param l [input] index of the domain
622 * @param k [input] index of the considered basis function in \f$\phi'\f$
623 * @param j [input] index of the considered basis function in \f$\theta'\f$
624 * @param pzero [input] positive number under which (in absolute value)
625 * a coefficient will be considered as zero
626 * (default value = 1.e-14)
627 * @param nomy [input] y legend of the figure (default value = 0x0,
628 * corresponds to no y legend)
629 * @param title [input] title of the figure (default value = 0x0,
630 * corresponds to no title)
631 * @param device [input] PGPLOT device (default value = 0x0)
632 * @param newgraph [input] controls the opening/closing of the graphic device: \n
633 * 0 : does nothing (the device must be already opened) \n
634 * 1 : opens the device but does not close it at the end \n
635 * 2 : closes the device at the end but does not open it at
636 * the beginning \n
637 * 3 (default value) : opens and closes the device
638 *
639 * @param nxpage [input] number of graphs in the horizontal direction of the
640 * display window (meaningfull only if
641 * \c newgraph = 1 or 3) (default value = 1)
642 * @param nypage [input] number of graphs in the vertical direction of the
643 * display window (meaningfull only if
644 * \c newgraph = 1 or 3) (default value = 1)
645 */
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
651 /** Plots the coefficients of the spectral expansion in \f$\theta'\f$ of a
652 * \c Valeur .
653 *
654 * This routine performs a logarithmic plot of the coefficients of the
655 * \f$\theta'\f$ expansion of the coefficient which is in front of a given
656 * \f$\phi'\f$ basis function (index \c k ) and a given \f$\xi\f$
657 * basis function (index \c i ) in the general spectral expansion of a
658 * field. The plotted quantities are the logarithm of the absolute value
659 * of the coefficients, using solid lines (resp. dashed lines) for
660 * positive coefficients (resp. negative coefficients).
661 *
662 * @param uu [input] \c Valeur the \f$\xi\f$ coefficients of which are to
663 * be plotted
664 * @param l [input] index of the domain
665 * @param k [input] index of the considered basis function in \f$\phi'\f$
666 * @param i [input] index of the considered basis function in \f$\xi\f$
667 * @param pzero [input] positive number under which (in absolute value)
668 * a coefficient will be considered as zero
669 * (default value = 1.e-14)
670 * @param nomy [input] y legend of the figure (default value = 0x0,
671 * corresponds to no y legend)
672 * @param title [input] title of the figure (default value = 0x0,
673 * corresponds to no title)
674 * @param device [input] PGPLOT device (default value = 0x0)
675 * @param newgraph [input] controls the opening/closing of the graphic device: \n
676 * 0 : does nothing (the device must be already opened) \n
677 * 1 : opens the device but does not close it at the end \n
678 * 2 : closes the device at the end but does not open it at
679 * the beginning \n
680 * 3 (default value) : opens and closes the device
681 *
682 * @param nxpage [input] number of graphs in the horizontal direction of the
683 * display window (meaningfull only if
684 * \c newgraph = 1 or 3) (default value = 1)
685 * @param nypage [input] number of graphs in the vertical direction of the
686 * display window (meaningfull only if
687 * \c newgraph = 1 or 3) (default value = 1)
688 */
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
694 /** Plots the coefficients of the spectral expansion in \f$\phi'\f$ of a
695 * \c Valeur .
696 *
697 * This routine performs a logarithmic plot of the coefficients of the
698 * \f$\phi'\f$ expansion of the coefficient which is in front of a given
699 * \f$\theta'\f$ basis function (index \c j ) and a given \f$\xi\f$
700 * basis function (index \c i ) in the general spectral expansion of a
701 * field. The plotted quantities are the logarithm of the absolute value
702 * of the coefficients, using solid lines (resp. dashed lines) for
703 * positive coefficients (resp. negative coefficients).
704 *
705 * @param uu [input] \c Valeur the \f$\xi\f$ coefficients of which are to
706 * be plotted
707 * @param l [input] index of the domain
708 * @param j [input] index of the considered basis function in \f$\theta'\f$
709 * @param i [input] index of the considered basis function in \f$\xi\f$
710 * @param pzero [input] positive number under which (in absolute value)
711 * a coefficient will be considered as zero
712 * (default value = 1.e-14)
713 * @param nomy [input] y legend of the figure (default value = 0x0,
714 * corresponds to no y legend)
715 * @param title [input] title of the figure (default value = 0x0,
716 * corresponds to no title)
717 * @param device [input] PGPLOT device (default value = 0x0)
718 * @param newgraph [input] controls the opening/closing of the graphic device: \n
719 * 0 : does nothing (the device must be already opened) \n
720 * 1 : opens the device but does not close it at the end \n
721 * 2 : closes the device at the end but does not open it at
722 * the beginning \n
723 * 3 (default value) : opens and closes the device
724 *
725 * @param nxpage [input] number of graphs in the horizontal direction of the
726 * display window (meaningfull only if
727 * \c newgraph = 1 or 3) (default value = 1)
728 * @param nypage [input] number of graphs in the vertical direction of the
729 * display window (meaningfull only if
730 * \c newgraph = 1 or 3) (default value = 1)
731 */
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
736 /** Plots the coefficients of the functions \f$F_l(\theta', \phi')\f$ and
737 * \f$G_l(\theta', \phi')\f$ of a mapping of class \c Map_et .
738 *
739 * This routine performs a logarithmic plot of the coefficients of the
740 * \f$\theta'\f$ (resp. \f$\phi'\f$) expansion of the coefficient which is in front
741 * of a given \f$\phi'\f$ (resp. \f$\theta'\f$) basis function (index \c k
742 * (resp. index \c j )).
743 * The plotted quantities are the logarithm of the absolute value
744 * of the coefficients, using solid lines (resp. dashed lines) for
745 * positive coefficients (resp. negative coefficients).
746 *
747 * @param mp [input] Mapping of class \c Map_et
748 * @param lz [input] Index of the domain where the plot is to performed
749 *
750 */
751 void des_map_et(const Map_et& mp, int lz) ;
752
753 /** @} */
754
755
756 /**
757 * \defgroup grafscal Plot of a scalar field
758 * \ingroup (graphics)
759 * @{
760 */
761
762 /** Draws the profile of a \c Scalar along some radial axis determined by
763 * a fixed value of \f$(\theta, \phi)\f$ (version with x-axis labelled with
764 * Lorene's unit of length)
765 *
766 * @param uu [input] \c Scalar to be drawn
767 * @param r_min [input] Minimal value of \e r for the drawing
768 * @param r_max [input] Maximal value of \e r for the drawing
769 * @param theta [input] Value of \f$\theta\f$ which defines the profile axis
770 * @param phi [input] Value of \f$\phi\f$ which defines the profile axis
771 * @param nomy [input] y legend of the figure (default value = 0x0,
772 * corresponds to no y legend)
773 * @param title [input] title of the figure (default value = 0x0,
774 * corresponds to no title)
775 * @param draw_bound [input] true for drawing the boundaries of the various
776 * domains (default value = true)
777 *
778 */
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
784 /** Draws the profile of a \c Scalar along some radial axis determined by
785 * a fixed value of \f$(\theta, \phi)\f$ (general version)
786 *
787 * @param uu [input] \c Scalar to be drawn
788 * @param r_min [input] Minimal value of \e r for the drawing
789 * @param r_max [input] Maximal value of \e r for the drawing
790 * @param scale scale factor for the radius in the plot
791 * @param theta [input] Value of \f$\theta\f$ which defines the profile axis
792 * @param phi [input] Value of \f$\phi\f$ which defines the profile axis
793 * @param nomx [input] x legend of the figure (default value = 0x0,
794 * corresponds to no x legend)
795 * @param nomy [input] y legend of the figure (default value = 0x0,
796 * corresponds to no y legend)
797 * @param title [input] title of the figure (default value = 0x0,
798 * corresponds to no title)
799 * @param draw_bound [input] true for drawing the boundaries of the various
800 * domains (default value = true)
801 *
802 */
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
809 /** Draws the profile of \c Scalar 's along some radial axis determined by
810 * a fixed value of \f$(\theta, \phi)\f$.
811 *
812 * @param uu [input] Array (size \c nprof ) containing the addresses
813 * of the \c Scalar to be drawn
814 * @param nprof [input] Number of \c Scalar 's to be drawn
815 * @param r_min [input] Minimal value of \e r for the drawing
816 * @param r_max [input] Maximal value of \e r for the drawing
817 * @param theta [input] Array (size \c nprof ) of the values of \f$\theta\f$
818 * defining the profile axis for each plot: the line no.\c i represents
819 * the scalar \c uu[i] along the direction \c (theta[i],phi[i])
820 * @param phi [input] Array (size \c nprof ) of the values of \f$\phi\f$
821 * defining the profile axis for each plot: the line no.\c i represents
822 * the scalar \c uu[i] along the direction \c (theta[i],phi[i])
823 * @param radial_scale [input] factor by which the values of \c r are to
824 * be multiplied to get the abscidia scale
825 * @param closeit [input] determines whether the graphic device must be closed or not
826 * after the plot has been performed
827 * @param nomy [input] y legend of the figure (default value = 0x0,
828 * corresponds to no y legend)
829 * @param title [input] title of the figure (default value = 0x0,
830 * corresponds to no title)
831 * @param ngraph [input] Index of the graphic device (in the range [0,99])
832 * to be used for the plot: if this device has never been used or is closed,
833 * it will be opened.
834 * @param nomx [input] x legend of the figure (default value = 0x0,
835 * corresponds to "r")
836 * @param line_style [input] Array (size \c nprof ) defining the line style
837 * for each plot: the possible values are \c line_style[i] = 1
838 * (full line), 2 (dashed), 3 (dot-dash-dot-dash), 4 (dotted), 5
839 * (dash-dot-dot-dot). The default value = 0x0 corresponds to a cyclic sequence
840 * of the above styles.
841 * @param device [input] type of PGPLOT device: 0x0 (default value) will
842 * result in interactive choice; \c "/xwin" in X-Window display;
843 * \c "filename.eps/cps" in Encapsulated PostScript output
844 * and \c "/n" in no output.
845 * @param draw_bound [input] true for drawing the boundaries of the various
846 * domains (default value = true)
847 */
848
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
856 /** Draws the grid points of a \c Scalar along some radial axis determined by
857 * a fixed value of \f$(\theta, \phi)\f$ (version with x-axis labelled with
858 * Lorene's unit of length)
859 *
860 * @param uu [input] \c Scalar to be drawn
861 * @param theta [input] Value of \f$\theta\f$ which defines the profile axis
862 * @param phi [input] Value of \f$\phi\f$ which defines the profile axis
863 * @param nomy [input] y legend of the figure (default value = 0x0,
864 * corresponds to no y legend)
865 * @param title [input] title of the figure (default value = 0x0,
866 * corresponds to no title)
867 * @param draw_bound [input] true for drawing the boundaries of the various
868 * domains (default value = true)
869 *
870 */
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
876 /** Draws the grid points of a \c Scalar along some radial axis determined by
877 * a fixed value of \f$(\theta, \phi)\f$ (general version)
878 *
879 * @param uu [input] \c Scalar to be drawn
880 * @param scale scale factor for the radius in the plot
881 * @param theta [input] Value of \f$\theta\f$ which defines the profile axis
882 * @param phi [input] Value of \f$\phi\f$ which defines the profile axis
883 * @param nomx [input] x legend of the figure (default value = 0x0,
884 * corresponds to no x legend)
885 * @param nomy [input] y legend of the figure (default value = 0x0,
886 * corresponds to no y legend)
887 * @param title [input] title of the figure (default value = 0x0,
888 * corresponds to no title)
889 * @param draw_bound [input] true for drawing the boundaries of the various
890 * domains (default value = true)
891 *
892 */
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
898 /** Saves in a file the profile of a \c Scalar along some radial axis determined by
899 * a fixed value of \f$(\theta, \phi)\f$
900 *
901 * @param uu [input] \c Scalar to be drawn
902 * @param r_min [input] Minimal value of \e r
903 * @param r_max [input] Maximal value of \e r
904 * @param theta [input] Value of \f$\theta\f$ which defines the profile axis
905 * @param phi [input] Value of \f$\phi\f$ which defines the profile axis
906 * @param filename [input] root of the filename
907 *
908 */
909 void save_profile(const Scalar& uu, double r_min, double r_max,
910 double theta, double phi, const char* filename) ;
911
912
913 /** Draws 5 profiles of a scalar field along various radial axes
914 * in two meridional planes \f$\phi=0\f$ and \f$\phi=\pi/4\f$.
915 * For \f$\phi=0\f$, 3 profiles are drawn, corresponding to
916 * \f$\theta=0,\ \pi/4,\ \pi/2\f$,
917 * whereas for \f$\phi=\pi/4\f$, 2 profiles are drawn, corresponding to
918 * \f$\theta=0,\ \pi/4\f$.
919 *
920 * @param uu [input] Scalar field to be drawn
921 * @param r_min [input] Minimal value of \e r for the drawing
922 * @param r_max [input] Maximal value of \e r for the drawing
923 * @param nomy [input] y legend of the figure (default value = 0x0,
924 * corresponds to no y legend)
925 * @param ngraph [input] Index of the graphic device (in the range [0,99])
926 * to be used for the plot: if this device has never been used or is closed,
927 * it will be opened.
928 * @param device [input] type of PGPLOT device: 0x0 (default value) will
929 * result in interactive choice; \c "/xwin" in X-Window display;
930 * \c "filename.eps/cps" in Encapsulated PostScript output
931 * and \c "/n" in no output.
932 * @param closeit [input] determines whether the graphic device must be closed or not
933 * after the plot has been performed
934 * @param draw_bound [input] true for drawing the boundaries of the various
935 * domains (default value = true)
936 */
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
943 /** Basic routine for drawing a stellar surface in a plane X=constant.
944 *
945 * X is the Cartesian coordinate relative to the absolute frame.
946 * The surface to be drawn is defined as the location where a given scalar
947 * field vanishes.
948 *
949 * @param defsurf [input] field defining the
950 * surface: the surface is defined as the location
951 * where this \c Scalar vanishes
952 * @param x0 [input] value of the absolute coordinate X which defines the plane
953 * of the drawing
954 * @param device [input] PGPLOT device (default value = 0x0)
955 * @param newgraph [input] controls the opening/closing of the graphic device: \n
956 * 0 : does nothing (the device must be already opened) \n
957 * 1 : opens the device but does not close it at the end \n
958 * 2 : closes the device at the end but does not open it at
959 * the beginning \n
960 * 3 (default value) : opens and closes the device
961 * @param y_min [input] lowest value of absol. coord. Y (default value = -1)
962 * @param y_max [input] highest value of absol. coord. Y (default value = 1)
963 * @param z_min [input] lowest value of absol. coord. Z (default value = -1)
964 * @param z_max [input] highest value of absol. coord. Z (default value = 1)
965 * @param nomy [input] y legend of the figure (default value = 0x0)
966 * @param nomz [input] z legend of the figure (default value = 0x0)
967 * @param title [input] title of the figure (default value = 0x0)
968 * @param nxpage [input] number of graphs in the horizontal direction of the
969 * display window (meaningfull only if
970 * \c newgraph = 1 or 3) (default value = 1)
971 * @param nypage [input] number of graphs in the vertical direction of the
972 * display window (meaningfull only if
973 * \c newgraph = 1 or 3) (default value = 1)
974 */
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
981 /** Basic routine for drawing a stellar surface in a plane Y=constant.
982 *
983 * Y is the Cartesian coordinate relative to the absolute frame.
984 * The surface to be drawn is defined as the location where a given scalar
985 * field vanishes.
986 *
987 * @param defsurf [input] field defining the
988 * surface: the surface is defined as the location
989 * where this \c Scalar vanishes
990 * @param y0 [input] value of the coordinate Y which defines the plane
991 * of the drawing
992 * @param device [input] PGPLOT device (default value = 0x0)
993 * @param newgraph [input] controls the opening/closing of the graphic device: \n
994 * 0 : does nothing (the device must be already opened) \n
995 * 1 : opens the device but does not close it at the end \n
996 * 2 : closes the device at the end but does not open it at
997 * the beginning \n
998 * 3 (default value) : opens and closes the device
999 * @param x_min [input] lowest value of absol. coord. X (default value = -1)
1000 * @param x_max [input] highest value of absol. coord. X (default value = 1)
1001 * @param z_min [input] lowest value of absol. coord. Z (default value = -1)
1002 * @param z_max [input] highest value of absol. coord. Z (default value = 1)
1003 * @param nomx [input] x legend of the figure (default value = 0x0)
1004 * @param nomz [input] z legend of the figure (default value = 0x0)
1005 * @param title [input] title of the figure (default value = 0x0)
1006 * @param nxpage [input] number of graphs in the horizontal direction of the
1007 * display window (meaningfull only if
1008 * \c newgraph = 1 or 3) (default value = 1)
1009 * @param nypage [input] number of graphs in the vertical direction of the
1010 * display window (meaningfull only if
1011 * \c newgraph = 1 or 3) (default value = 1)
1012 */
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
1020 /** Basic routine for drawing a stellar surface in a plane Z=constant.
1021 *
1022 * Z is the Cartesian coordinate relative to the absolute frame.
1023 * The surface to be drawn is defined as the location where a given scalar
1024 * field vanishes.
1025 *
1026 * @param defsurf [input] field defining the
1027 * surface: the surface is defined as the location
1028 * where this \c Scalar vanishes
1029 * @param z0 [input] value of the coordinate Z which defines the plane
1030 * of the drawing
1031 * @param device [input] PGPLOT device (default value = 0x0)
1032 * @param newgraph [input] controls the opening/closing of the graphic device: \n
1033 * 0 : does nothing (the device must be already opened) \n
1034 * 1 : opens the device but does not close it at the end \n
1035 * 2 : closes the device at the end but does not open it at
1036 * the beginning \n
1037 * 3 (default value) : opens and closes the device
1038 * @param x_min [input] lowest value of absol. coord. X (default value = -1)
1039 * @param x_max [input] highest value of absol. coord. X (default value = 1)
1040 * @param y_min [input] lowest value of absol. coord. Y (default value = -1)
1041 * @param y_max [input] highest value of absol. coord. Y (default value = 1)
1042 * @param nomx [input] x legend of the figure (default value = 0x0)
1043 * @param nomy [input] y legend of the figure (default value = 0x0)
1044 * @param title [input] title of the figure (default value = 0x0)
1045 * @param nxpage [input] number of graphs in the horizontal direction of the
1046 * display window (meaningfull only if
1047 * \c newgraph = 1 or 3) (default value = 1)
1048 * @param nypage [input] number of graphs in the vertical direction of the
1049 * display window (meaningfull only if
1050 * \c newgraph = 1 or 3) (default value = 1)
1051 */
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
1060 /** Draws isocontour lines of a \c Scalar in a plane X=constant.
1061 *
1062 * X is the Cartesian coordinate relative to the absolute frame.
1063 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1064 * values of the field.
1065 *
1066 * @param uu [input] \c Scalar to be drawn
1067 * @param x0 [input] value of the coordinate X which defines the plane
1068 * of the drawing
1069 * @param nzdes [input] number of domains for which the plot is performed:
1070 * the size of the graphic window is determined so that
1071 * the \c nzdes innermost domains fit in it (for
1072 * \c zoom = 1.)
1073 * @param title [input] title of the figure (default value = 0x0,
1074 * corresponds to no title)
1075 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1076 * surface: the surface is defined as the location
1077 * where this \c Scalar vanishes (default value = 0x0,
1078 * corresponds to no surface plot)
1079 * @param zoom [input] Factor by which the size of the graphic window
1080 * (determined from the size of the \c nzdes innermost
1081 * domains) is multiplied (default value = 1.2)
1082 * @param draw_bound [input] true for drawing the boundaries of the various
1083 * domains (default value = true)
1084 * @param ncour [input] number of isocontour lines (default value = 15)
1085 * @param ny [input] number of points in the Y direction (default value = 100)
1086 * @param nz [input] number of points in the Z direction (default value = 100)
1087 */
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
1094 /** Draws isocontour lines of a \c Scalar in a plane X=constant
1095 * within a specified graphic window.
1096 *
1097 * X is the Cartesian coordinate relative to the absolute frame.
1098 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1099 * values of the field.
1100 *
1101 * @param uu [input] \c Scalar to be drawn
1102 * @param x0 [input] value of the coordinate X which defines the plane
1103 * of the drawing
1104 * @param y_min [input] lowest value of absol. coord. Y
1105 * @param y_max [input] highest value of absol. coord. Y
1106 * @param z_min [input] lowest value of absol. coord. Z
1107 * @param z_max [input] highest value of absol. coord. Z
1108 * @param title [input] title of the figure (default value = 0x0,
1109 * corresponds to no title)
1110 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1111 * surface: the surface is defined as the location
1112 * where this \c Scalar vanishes (default value = 0x0,
1113 * corresponds to no surface plot)
1114 * @param draw_bound [input] true for drawing the boundaries of the various
1115 * domains (default value = true)
1116 * @param ncour [input] number of isocontour lines (default value = 15)
1117 * @param ny [input] number of points in the Y direction (default value = 100)
1118 * @param nz [input] number of points in the Z direction (default value = 100)
1119 */
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
1126 /** Draws isocontour lines of a \c Scalar in a plane Y=constant.
1127 *
1128 * Y is the Cartesian coordinate relative to the absolute frame.
1129 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1130 * values of the field.
1131 *
1132 * @param uu [input] \c Scalar to be drawn
1133 * @param y0 [input] value of the coordinate Y which defines the plane
1134 * of the drawing
1135 * @param nzdes [input] number of domains for which the plot is performed:
1136 * the size of the graphic window is determined so that
1137 * the \c nzdes innermost domains fit in it (for
1138 * \c zoom = 1.)
1139 * @param title [input] title of the figure (default value = 0x0,
1140 * corresponds to no title)
1141 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1142 * surface: the surface is defined as the location
1143 * where this \c Scalar vanishes (default value = 0x0,
1144 * corresponds to no surface plot)
1145 * @param zoom [input] Factor by which the size of the graphic window
1146 * (determined from the size of the \c nzdes innermost
1147 * domains) is multiplied (default value = 1.2)
1148 * @param draw_bound [input] true for drawing the boundaries of the various
1149 * domains (default value = true)
1150 * @param ncour [input] number of isocontour lines (default value = 15)
1151 * @param nx [input] number of points in the X direction (default value = 100)
1152 * @param nz [input] number of points in the Z direction (default value = 100)
1153 */
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
1159 /** Draws isocontour lines of a \c Scalar in a plane Y=constant
1160 * within a specified graphic window.
1161 *
1162 * Y is the Cartesian coordinate relative to the absolute frame.
1163 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1164 * values of the field.
1165 *
1166 * @param uu [input] \c Scalar to be drawn
1167 * @param y0 [input] value of the coordinate Y which defines the plane
1168 * of the drawing
1169 * @param x_min [input] lowest value of absol. coord. X
1170 * @param x_max [input] highest value of absol. coord. X
1171 * @param z_min [input] lowest value of absol. coord. Z
1172 * @param z_max [input] highest value of absol. coord. Z
1173 * @param title [input] title of the figure (default value = 0x0,
1174 * corresponds to no title)
1175 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1176 * surface: the surface is defined as the location
1177 * where this \c Scalar vanishes (default value = 0x0,
1178 * corresponds to no surface plot)
1179 * @param draw_bound [input] true for drawing the boundaries of the various
1180 * domains (default value = true)
1181 * @param ncour [input] number of isocontour lines (default value = 15)
1182 * @param nx [input] number of points in the X direction (default value = 100)
1183 * @param nz [input] number of points in the Z direction (default value = 100)
1184 */
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
1191 /** Draws isocontour lines of a \c Scalar in a plane Z=constant.
1192 *
1193 * Z is the Cartesian coordinate relative to the absolute frame.
1194 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1195 * values of the field.
1196 *
1197 * @param uu [input] \c Scalar to be drawn
1198 * @param z0 [input] value of the coordinate Z which defines the plane
1199 * of the drawing
1200 * @param nzdes [input] number of domains for which the plot is performed:
1201 * the size of the graphic window is determined so that
1202 * the \c nzdes innermost domains fit in it (for
1203 * \c zoom = 1.)
1204 * @param title [input] title of the figure (default value = 0x0,
1205 * corresponds to no title)
1206 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1207 * surface: the surface is defined as the location
1208 * where this \c Scalar vanishes (default value = 0x0,
1209 * corresponds to no surface plot)
1210 * @param zoom [input] Factor by which the size of the graphic window
1211 * (determined from the size of the \c nzdes innermost
1212 * domains) is multiplied (default value = 1.2)
1213 * @param draw_bound [input] true for drawing the boundaries of the various
1214 * domains (default value = true)
1215 * @param ncour [input] number of isocontour lines (default value = 15)
1216 * @param nx [input] number of points in the X direction (default value = 100)
1217 * @param ny [input] number of points in the Y direction (default value = 100)
1218 */
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
1224 /** Draws isocontour lines of a \c Scalar in a plane Z=constant
1225 * within a specified graphic window.
1226 *
1227 * Z is the Cartesian coordinate relative to the absolute frame.
1228 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1229 * values of the field.
1230 *
1231 * @param uu [input] \c Scalar to be drawn
1232 * @param z0 [input] value of the coordinate Z which defines the plane
1233 * of the drawing
1234 * @param x_min [input] lowest value of absol. coord. X
1235 * @param x_max [input] highest value of absol. coord. X
1236 * @param y_min [input] lowest value of absol. coord. Y
1237 * @param y_max [input] highest value of absol. coord. Y
1238 * @param title [input] title of the figure (default value = 0x0,
1239 * corresponds to no title)
1240 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1241 * surface: the surface is defined as the location
1242 * where this \c Scalar vanishes (default value = 0x0,
1243 * corresponds to no surface plot)
1244 * @param draw_bound [input] true for drawing the boundaries of the various
1245 * domains (default value = true)
1246 * @param ncour [input] number of isocontour lines (default value = 15)
1247 * @param nx [input] number of points in the X direction (default value = 100)
1248 * @param ny [input] number of points in the Y direction (default value = 100)
1249 */
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
1256 /** @} */
1257
1258
1259 /**
1260 * \defgroup grafvec Plot of a vector field.
1261 * \ingroup (graphics)
1262 * @{
1263 */
1264
1265 /** Plots a vector field in a plane X=constant.
1266 *
1267 * X is the Cartesian coordinate relative to the absolute frame.
1268 *
1269 * @param vv [input] vector field to be drawn
1270 * @param x0 [input] value of the coordinate X which defines the plane
1271 * of the drawing
1272 * @param scale [input] controls the length of the drawn arrows; if \c scale
1273 * is negative, the length is determined automatically by
1274 * the routine: \n
1275 * \c scale = -1 : max. length = step of the rectangular
1276 * grid \n
1277 * \c scale = -2 : max. length = 2* step of the rectangular
1278 * grid \n
1279 * etc...
1280 * @param sizefl [input] size of the arrows extremities (standard value: 1)
1281 * @param nzdes [input] number of domains for which the plot is performed:
1282 * the size of the graphic window is determined so that
1283 * the \c nzdes innermost domains fit in it (for
1284 * \c zoom = 1.)
1285 * @param title [input] title of the figure (default value = 0x0,
1286 * corresponds to no title)
1287 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1288 * surface: the surface is defined as the location
1289 * where this \c Scalar vanishes (default value = 0x0,
1290 * corresponds to no surface plot)
1291 * @param zoom [input] Factor by which the size of the graphic window
1292 * (determined from the size of the \c nzdes innermost
1293 * domains) is multiplied (default value = 1.2)
1294 * @param draw_bound [input] true for drawing the boundaries of the various
1295 * domains (default value = true)
1296 * @param ny [input] number of points in the Y direction (default value = 20)
1297 * @param nz [input] number of points in the Z direction (default value = 20)
1298 */
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
1305 /** Plots a vector field in a plane X=constant
1306 * within a specified graphic window.
1307 *
1308 * X is the Cartesian coordinate relative to the absolute frame.
1309 *
1310 * @param vv [input] vector field to be drawn
1311 * @param x0 [input] value of the coordinate X which defines the plane
1312 * of the drawing
1313 * @param scale [input] controls the length of the drawn arrows; if \c scale
1314 * is negative, the length is determined automatically by
1315 * the routine: \n
1316 * \c scale = -1 : max. length = step of the rectangular
1317 * grid \n
1318 * \c scale = -2 : max. length = 2* step of the rectangular
1319 * grid \n
1320 * etc...
1321 * @param sizefl [input] size of the arrows extremities (standard value: 1)
1322 * @param y_min [input] lowest value of absol. coord. Y
1323 * @param y_max [input] highest value of absol. coord. Y
1324 * @param z_min [input] lowest value of absol. coord. Z
1325 * @param z_max [input] highest value of absol. coord. Z
1326 * @param title [input] title of the figure (default value = 0x0,
1327 * corresponds to no title)
1328 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1329 * surface: the surface is defined as the location
1330 * where this \c Scalar vanishes (default value = 0x0,
1331 * corresponds to no surface plot)
1332 * @param draw_bound [input] true for drawing the boundaries of the various
1333 * domains (default value = true)
1334 * @param ny [input] number of points in the Y direction (default value = 20)
1335 * @param nz [input] number of points in the Z direction (default value = 20)
1336 */
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
1342 /** Plots a vector field in a plane Y=constant.
1343 *
1344 * Y is the Cartesian coordinate relative to the absolute frame.
1345 *
1346 * @param vv [input] vector field to be drawn
1347 * @param y0 [input] value of the coordinate Y which defines the plane
1348 * of the drawing
1349 * @param scale [input] controls the length of the drawn arrows; if \c scale
1350 * is negative, the length is determined automatically by
1351 * the routine: \n
1352 * \c scale = -1 : max. length = step of the rectangular
1353 * grid \n
1354 * \c scale = -2 : max. length = 2* step of the rectangular
1355 * grid \n
1356 * etc...
1357 * @param sizefl [input] size of the arrows extremities (standard value: 1)
1358 * @param nzdes [input] number of domains for which the plot is performed:
1359 * the size of the graphic window is determined so that
1360 * the \c nzdes innermost domains fit in it (for
1361 * \c zoom = 1.)
1362 * @param title [input] title of the figure (default value = 0x0,
1363 * corresponds to no title)
1364 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1365 * surface: the surface is defined as the location
1366 * where this \c Scalar vanishes (default value = 0x0,
1367 * corresponds to no surface plot)
1368 * @param zoom [input] Factor by which the size of the graphic window
1369 * (determined from the size of the \c nzdes innermost
1370 * domains) is multiplied (default value = 1.2)
1371 * @param draw_bound [input] true for drawing the boundaries of the various
1372 * domains (default value = true)
1373 * @param nx [input] number of points in the X direction (default value = 20)
1374 * @param nz [input] number of points in the Z direction (default value = 20)
1375 */
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
1382 /** Plots a vector field in a plane Y=constant
1383 * within a specified graphic window.
1384 *
1385 * Y is the Cartesian coordinate relative to the absolute frame.
1386 *
1387 * @param vv [input] vector field to be drawn
1388 * @param y0 [input] value of the coordinate Y which defines the plane
1389 * of the drawing
1390 * @param scale [input] controls the length of the drawn arrows; if \c scale
1391 * is negative, the length is determined automatically by
1392 * the routine: \n
1393 * \c scale = -1 : max. length = step of the rectangular
1394 * grid \n
1395 * \c scale = -2 : max. length = 2* step of the rectangular
1396 * grid \n
1397 * etc...
1398 * @param sizefl [input] size of the arrows extremities (standard value: 1)
1399 * @param x_min [input] lowest value of absol. coord. X
1400 * @param x_max [input] highest value of absol. coord. X
1401 * @param z_min [input] lowest value of absol. coord. Z
1402 * @param z_max [input] highest value of absol. coord. Z
1403 * @param title [input] title of the figure (default value = 0x0,
1404 * corresponds to no title)
1405 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1406 * surface: the surface is defined as the location
1407 * where this \c Scalar vanishes (default value = 0x0,
1408 * corresponds to no surface plot)
1409 * @param draw_bound [input] true for drawing the boundaries of the various
1410 * domains (default value = true)
1411 * @param nx [input] number of points in the X direction (default value = 20)
1412 * @param nz [input] number of points in the Z direction (default value = 20)
1413 */
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
1419 /** Plots a vector field in a plane Z=constant.
1420 *
1421 * Z is the Cartesian coordinate relative to the absolute frame.
1422 *
1423 * @param vv [input] vector field to be drawn
1424 * @param z0 [input] value of the coordinate Y which defines the plane
1425 * of the drawing
1426 * @param scale [input] controls the length of the drawn arrows; if \c scale
1427 * is negative, the length is determined automatically by
1428 * the routine: \n
1429 * \c scale = -1 : max. length = step of the rectangular
1430 * grid \n
1431 * \c scale = -2 : max. length = 2* step of the rectangular
1432 * grid \n
1433 * etc...
1434 * @param sizefl [input] size of the arrows extremities (standard value: 1)
1435 * @param nzdes [input] number of domains for which the plot is performed:
1436 * the size of the graphic window is determined so that
1437 * the \c nzdes innermost domains fit in it (for
1438 * \c zoom = 1.)
1439 * @param title [input] title of the figure (default value = 0x0,
1440 * corresponds to no title)
1441 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1442 * surface: the surface is defined as the location
1443 * where this \c Scalar vanishes (default value = 0x0,
1444 * corresponds to no surface plot)
1445 * @param zoom [input] Factor by which the size of the graphic window
1446 * (determined from the size of the \c nzdes innermost
1447 * domains) is multiplied (default value = 1.2)
1448 * @param draw_bound [input] true for drawing the boundaries of the various
1449 * domains (default value = true)
1450 * @param nx [input] number of points in the X direction (default value = 20)
1451 * @param ny [input] number of points in the Y direction (default value = 20)
1452 */
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
1459 /** Plots a vector field in a plane Z=constant
1460 * within a specified graphic window.
1461 *
1462 * Z is the Cartesian coordinate relative to the absolute frame.
1463 *
1464 * @param vv [input] vector field to be drawn
1465 * @param z0 [input] value of the coordinate Z which defines the plane
1466 * of the drawing
1467 * @param scale [input] controls the length of the drawn arrows; if \c scale
1468 * is negative, the length is determined automatically by
1469 * the routine: \n
1470 * \c scale = -1 : max. length = step of the rectangular
1471 * grid \n
1472 * \c scale = -2 : max. length = 2* step of the rectangular
1473 * grid \n
1474 * etc...
1475 * @param sizefl [input] size of the arrows extremities (standard value: 1)
1476 * @param x_min [input] lowest value of absol. coord. X
1477 * @param x_max [input] highest value of absol. coord. X
1478 * @param y_min [input] lowest value of absol. coord. Y
1479 * @param y_max [input] highest value of absol. coord. Y
1480 * @param title [input] title of the figure (default value = 0x0,
1481 * corresponds to no title)
1482 * @param defsurf [input] pointer on a \c Scalar giving the definition of the
1483 * surface: the surface is defined as the location
1484 * where this \c Scalar vanishes (default value = 0x0,
1485 * corresponds to no surface plot)
1486 * @param draw_bound [input] true for drawing the boundaries of the various
1487 * domains (default value = true)
1488 * @param nx [input] number of points in the X direction (default value = 20)
1489 * @param ny [input] number of points in the Y direction (default value = 20)
1490 */
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
1497 /** @} */
1498
1499
1500 /**
1501 * \defgroup graftens Plot of a tensor field of valence 2
1502 * \ingroup (graphics)
1503 * @{
1504 */
1505
1506 /** Draws profiles of the components of a symmetric tensor field
1507 * along various radial axes
1508 * in two meridional planes \f$\phi=0\f$ and \f$\phi=\pi/4\f$
1509 * (see funtion
1510 * \c des_meridian(const Scalar&, double, double, const char*, int, const char*,
1511 * bool)
1512 * for details).
1513 *
1514 * @param hh [input] Tensor field, the components of which are to be drawn
1515 * @param r_min [input] Minimal value of \e r for the drawing
1516 * @param r_max [input] Maximal value of \e r for the drawing
1517 * @param name [input] Name of the tensor field (for the y legends).
1518 * @param ngraph0 [input] Index of the graphic device (in the range [0,99])
1519 * to be used for the plot for the first component of the tensor:
1520 * if this device has never been used or is closed, it will be opened.
1521 * The graphic devices for the 5 other components will be the 5 following
1522 * numbers.
1523 * @param device [input] type of PGPLOT device: 0x0 (default value) will
1524 * result in interactive choice; \c "/xwin" in X-Window display;
1525 * \c "filename.eps/cps" in Encapsulated PostScript output
1526 * and \c "/n" in no output.
1527 * @param closeit [input] determines whether the graphic device must be closed or not
1528 * after the plot has been performed
1529 */
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
1535 /** @} */
1536
1537
1538
1539
1540 /**
1541 * \defgroup grafscalobs Plot of a Cmp (obsolete)
1542 * \ingroup (graphics)
1543 * @{
1544 */
1545
1546 /** Draws the profile of a \c Cmp along some radial axis determined by
1547 * a fixed value of \f$(\theta, \phi)\f$.
1548 *
1549 * @param uu [input] \c Cmp to be drawn
1550 * @param r_min [input] Minimal value of \e r for the drawing
1551 * @param r_max [input] Maximal value of \e r for the drawing
1552 * @param theta [input] Value of \f$\theta\f$ which defines the profile axis
1553 * @param phi [input] Value of \f$\phi\f$ which defines the profile axis
1554 * @param nomy [input] y legend of the figure (default value = 0x0,
1555 * corresponds to no y legend)
1556 * @param title [input] title of the figure (default value = 0x0,
1557 * corresponds to no title)
1558 *
1559 */
1560
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
1566 /** Draws the profile of a \c Cmp along some radial axis determined by
1567 * a fixed value of \f$(\theta, \phi)\f$.
1568 *
1569 * @param uu [input] \c Cmp to be drawn
1570 * @param r_min [input] Minimal value of \e r for the drawing
1571 * @param r_max [input] Maximal value of \e r for the drawing
1572 * @param scale scale factor for the radius in the plot
1573 * @param theta [input] Value of \f$\theta\f$ which defines the profile axis
1574 * @param phi [input] Value of \f$\phi\f$ which defines the profile axis
1575 * @param nomx [input] x legend of the figure (default value = 0x0,
1576 * corresponds to no x legend)
1577 * @param nomy [input] y legend of the figure (default value = 0x0,
1578 * corresponds to no y legend)
1579 * @param title [input] title of the figure (default value = 0x0,
1580 * corresponds to no title)
1581 *
1582 */
1583
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
1589 /** Draws isocontour lines of a \c Cmp in a plane X=constant.
1590 *
1591 * X is the Cartesian coordinate relative to the absolute frame.
1592 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1593 * values of the field.
1594 *
1595 * @param uu [input] \c Cmp to be drawn
1596 * @param x0 [input] value of the coordinate X which defines the plane
1597 * of the drawing
1598 * @param nzdes [input] number of domains for which the plot is performed:
1599 * the size of the graphic window is determined so that
1600 * the \c nzdes innermost domains fit in it (for
1601 * \c zoom = 1.)
1602 * @param title [input] title of the figure (default value = 0x0,
1603 * corresponds to no title)
1604 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
1605 * surface: the surface is defined as the location
1606 * where this \c Cmp vanishes (default value = 0x0,
1607 * corresponds to no surface plot)
1608 * @param zoom [input] Factor by which the size of the graphic window
1609 * (determined from the size of the \c nzdes innermost
1610 * domains) is multiplied (default value = 1.2)
1611 * @param draw_bound [input] true for drawing the boundaries of the various
1612 * domains (default value = true)
1613 * @param ncour [input] number of isocontour lines (default value = 15)
1614 * @param ny [input] number of points in the Y direction (default value = 100)
1615 * @param nz [input] number of points in the Z direction (default value = 100)
1616 */
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
1623 /** Draws isocontour lines of a \c Cmp in a plane X=constant
1624 * within a specified graphic window.
1625 *
1626 * X is the Cartesian coordinate relative to the absolute frame.
1627 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1628 * values of the field.
1629 *
1630 * @param uu [input] \c Cmp to be drawn
1631 * @param x0 [input] value of the coordinate X which defines the plane
1632 * of the drawing
1633 * @param y_min [input] lowest value of absol. coord. Y
1634 * @param y_max [input] highest value of absol. coord. Y
1635 * @param z_min [input] lowest value of absol. coord. Z
1636 * @param z_max [input] highest value of absol. coord. Z
1637 * @param title [input] title of the figure (default value = 0x0,
1638 * corresponds to no title)
1639 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
1640 * surface: the surface is defined as the location
1641 * where this \c Cmp vanishes (default value = 0x0,
1642 * corresponds to no surface plot)
1643 * @param draw_bound [input] true for drawing the boundaries of the various
1644 * domains (default value = true)
1645 * @param ncour [input] number of isocontour lines (default value = 15)
1646 * @param ny [input] number of points in the Y direction (default value = 100)
1647 * @param nz [input] number of points in the Z direction (default value = 100)
1648 */
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
1655 /** Draws isocontour lines of a \c Cmp in a plane Y=constant.
1656 *
1657 * Y is the Cartesian coordinate relative to the absolute frame.
1658 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1659 * values of the field.
1660 *
1661 * @param uu [input] \c Cmp to be drawn
1662 * @param y0 [input] value of the coordinate Y which defines the plane
1663 * of the drawing
1664 * @param nzdes [input] number of domains for which the plot is performed:
1665 * the size of the graphic window is determined so that
1666 * the \c nzdes innermost domains fit in it (for
1667 * \c zoom = 1.)
1668 * @param title [input] title of the figure (default value = 0x0,
1669 * corresponds to no title)
1670 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
1671 * surface: the surface is defined as the location
1672 * where this \c Cmp vanishes (default value = 0x0,
1673 * corresponds to no surface plot)
1674 * @param zoom [input] Factor by which the size of the graphic window
1675 * (determined from the size of the \c nzdes innermost
1676 * domains) is multiplied (default value = 1.2)
1677 * @param draw_bound [input] true for drawing the boundaries of the various
1678 * domains (default value = true)
1679 * @param ncour [input] number of isocontour lines (default value = 15)
1680 * @param nx [input] number of points in the X direction (default value = 100)
1681 * @param nz [input] number of points in the Z direction (default value = 100)
1682 */
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
1688 /** Draws isocontour lines of a \c Cmp in a plane Y=constant
1689 * within a specified graphic window.
1690 *
1691 * Y is the Cartesian coordinate relative to the absolute frame.
1692 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1693 * values of the field.
1694 *
1695 * @param uu [input] \c Cmp to be drawn
1696 * @param y0 [input] value of the coordinate Y which defines the plane
1697 * of the drawing
1698 * @param x_min [input] lowest value of absol. coord. X
1699 * @param x_max [input] highest value of absol. coord. X
1700 * @param z_min [input] lowest value of absol. coord. Z
1701 * @param z_max [input] highest value of absol. coord. Z
1702 * @param title [input] title of the figure (default value = 0x0,
1703 * corresponds to no title)
1704 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
1705 * surface: the surface is defined as the location
1706 * where this \c Cmp vanishes (default value = 0x0,
1707 * corresponds to no surface plot)
1708 * @param draw_bound [input] true for drawing the boundaries of the various
1709 * domains (default value = true)
1710 * @param ncour [input] number of isocontour lines (default value = 15)
1711 * @param nx [input] number of points in the X direction (default value = 100)
1712 * @param nz [input] number of points in the Z direction (default value = 100)
1713 */
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
1720 /** Draws isocontour lines of a \c Cmp in a plane Z=constant.
1721 *
1722 * Z is the Cartesian coordinate relative to the absolute frame.
1723 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1724 * values of the field.
1725 *
1726 * @param uu [input] \c Cmp to be drawn
1727 * @param z0 [input] value of the coordinate Z which defines the plane
1728 * of the drawing
1729 * @param nzdes [input] number of domains for which the plot is performed:
1730 * the size of the graphic window is determined so that
1731 * the \c nzdes innermost domains fit in it (for
1732 * \c zoom = 1.)
1733 * @param title [input] title of the figure (default value = 0x0,
1734 * corresponds to no title)
1735 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
1736 * surface: the surface is defined as the location
1737 * where this \c Cmp vanishes (default value = 0x0,
1738 * corresponds to no surface plot)
1739 * @param zoom [input] Factor by which the size of the graphic window
1740 * (determined from the size of the \c nzdes innermost
1741 * domains) is multiplied (default value = 1.2)
1742 * @param draw_bound [input] true for drawing the boundaries of the various
1743 * domains (default value = true)
1744 * @param ncour [input] number of isocontour lines (default value = 15)
1745 * @param nx [input] number of points in the X direction (default value = 100)
1746 * @param ny [input] number of points in the Y direction (default value = 100)
1747 */
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
1753 /** Draws isocontour lines of a \c Cmp in a plane Z=constant
1754 * within a specified graphic window.
1755 *
1756 * Z is the Cartesian coordinate relative to the absolute frame.
1757 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1758 * values of the field.
1759 *
1760 * @param uu [input] \c Cmp to be drawn
1761 * @param z0 [input] value of the coordinate Z which defines the plane
1762 * of the drawing
1763 * @param x_min [input] lowest value of absol. coord. X
1764 * @param x_max [input] highest value of absol. coord. X
1765 * @param y_min [input] lowest value of absol. coord. Y
1766 * @param y_max [input] highest value of absol. coord. Y
1767 * @param title [input] title of the figure (default value = 0x0,
1768 * corresponds to no title)
1769 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
1770 * surface: the surface is defined as the location
1771 * where this \c Cmp vanishes (default value = 0x0,
1772 * corresponds to no surface plot)
1773 * @param draw_bound [input] true for drawing the boundaries of the various
1774 * domains (default value = true)
1775 * @param ncour [input] number of isocontour lines (default value = 15)
1776 * @param nx [input] number of points in the X direction (default value = 100)
1777 * @param ny [input] number of points in the Y direction (default value = 100)
1778 */
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
1785 /** Draws isocontour lines of a \c Cmp in a plane Y=constant.
1786 *
1787 * Y is the Cartesian coordinate relative to the absolute frame.
1788 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1789 * values of the field. The routine allows for the drawing of two
1790 * surfaces given by two enthalpies (defsurf and defsurf2).
1791 *
1792 * @param uu [input] \c Cmp to be drawn
1793 * @param y0 [input] value of the coordinate Y which defines the plane
1794 * of the drawing
1795 * @param nzdes [input] number of domains for which the plot is performed:
1796 * the size of the graphic window is determined so that
1797 * the \c nzdes innermost domains fit in it (for
1798 * \c zoom = 1.)
1799 * @param title [input] title of the figure (default value = 0x0,
1800 * corresponds to no title)
1801 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
1802 * surface for the first fluid (see et_rot_biluid.h):
1803 * the surface is defined as the location
1804 * where this \c Cmp vanishes (default value = 0x0,
1805 * corresponds to no surface plot)
1806 * @param defsurf2 [input] pointer on a \c Cmp giving the definition of
1807 * the surface for the second fluid (analog to defsurf)
1808 * @param zoom [input] Factor by which the size of the graphic window
1809 * (determined from the size of the \c nzdes innermost
1810 * domains) is multiplied (default value = 1.2)
1811 * @param draw_bound [input] true for drawing the boundaries of the various
1812 * domains (default value = true)
1813 * @param ncour [input] number of isocontour lines (default value = 15)
1814 * @param nx [input] number of points in the X direction (default value = 100)
1815 * @param nz [input] number of points in the Z direction (default value = 100)
1816 */
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
1823 /** Draws isocontour lines of a \c Cmp in a plane Y=constant
1824 * within a specified graphic window.
1825 *
1826 * Y is the Cartesian coordinate relative to the absolute frame.
1827 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1828 * values of the field. The routine allows for the drawing of two
1829 * surfaces given by two enthalpies (defsurf and defsurf2).
1830 *
1831 * @param uu [input] \c Cmp to be drawn
1832 * @param y0 [input] value of the coordinate Y which defines the plane
1833 * of the drawing
1834 * @param x_min [input] lowest value of absol. coord. X
1835 * @param x_max [input] highest value of absol. coord. X
1836 * @param z_min [input] lowest value of absol. coord. Z
1837 * @param z_max [input] highest value of absol. coord. Z
1838 * @param title [input] title of the figure (default value = 0x0,
1839 * corresponds to no title)
1840 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
1841 * surface for the first fluid (see et_rot_biluid.h):
1842 * the surface is defined as the location
1843 * where this \c Cmp vanishes (default value = 0x0,
1844 * corresponds to no surface plot)
1845 * @param defsurf2 [input] pointer on a \c Cmp giving the definition of
1846 * the surface for the second fluid (analog to defsurf)
1847 * @param draw_bound [input] true for drawing the boundaries of the various
1848 * domains (default value = true)
1849 * @param ncour [input] number of isocontour lines (default value = 15)
1850 * @param nx [input] number of points in the X direction (default value = 100)
1851 * @param nz [input] number of points in the Z direction (default value = 100)
1852 */
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
1860 /** Draws isocontour lines of a the sum of two \c Cmp 's in a plane X=constant.
1861 *
1862 * X is the Cartesian coordinate relative to the absolute frame.
1863 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1864 * values of the field \c uu1 + \c uu2 .
1865 *
1866 * @param uu1 [input] first \c Cmp to define the field \c uu1 + \c uu2 to
1867 * be drawn.
1868 * @param uu2 [input] second \c Cmp to define the field \c uu1 + \c uu2 to
1869 * be drawn.
1870 * @param x0 [input] value of the coordinate X which defines the plane
1871 * of the drawing
1872 * @param y_min [input] lowest value of absol. coord. Y
1873 * @param y_max [input] highest value of absol. coord. Y
1874 * @param z_min [input] lowest value of absol. coord. Z
1875 * @param z_max [input] highest value of absol. coord. Z
1876 * @param title [input] title of the figure (default value = 0x0,
1877 * corresponds to no title)
1878 * @param defsurf1 [input] pointer on a \c Cmp giving the definition of the
1879 * first surface: the surface is defined as the location
1880 * where this \c Cmp vanishes (default value = 0x0,
1881 * corresponds to no surface plot)
1882 * @param defsurf2 [input] pointer on a \c Cmp giving the definition of the
1883 * second surface: the surface is defined as the location
1884 * where this \c Cmp vanishes (default value = 0x0,
1885 * corresponds to no surface plot)
1886 * @param draw_bound [input] true for drawing the boundaries of the various
1887 * domains (default value = true)
1888 * @param ncour [input] number of isocontour lines (default value = 15)
1889 * @param ny [input] number of points in the Y direction (default value = 100)
1890 * @param nz [input] number of points in the Z direction (default value = 100)
1891 */
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
1899 /** Draws isocontour lines of a the sum of two \c Cmp 's in a plane Y=constant.
1900 *
1901 * Y is the Cartesian coordinate relative to the absolute frame.
1902 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1903 * values of the field \c uu1 \c uu2 .
1904 *
1905 * @param uu1 [input] first \c Cmp to define the field \c uu1 \c uu2 to
1906 * be drawn.
1907 * @param uu2 [input] second \c Cmp to define the field \c uu1 \c uu2 to
1908 * be drawn.
1909 * @param y0 [input] value of the coordinate Y which defines the plane
1910 * of the drawing
1911 * @param x_min [input] lowest value of absol. coord. X
1912 * @param x_max [input] highest value of absol. coord. X
1913 * @param z_min [input] lowest value of absol. coord. Z
1914 * @param z_max [input] highest value of absol. coord. Z
1915 * @param title [input] title of the figure (default value = 0x0,
1916 * corresponds to no title)
1917 * @param defsurf1 [input] pointer on a \c Cmp giving the definition of the
1918 * first surface: the surface is defined as the location
1919 * where this \c Cmp vanishes (default value = 0x0,
1920 * corresponds to no surface plot)
1921 * @param defsurf2 [input] pointer on a \c Cmp giving the definition of the
1922 * second surface: the surface is defined as the location
1923 * where this \c Cmp vanishes (default value = 0x0,
1924 * corresponds to no surface plot)
1925 * @param draw_bound [input] true for drawing the boundaries of the various
1926 * domains (default value = true)
1927 * @param ncour [input] number of isocontour lines (default value = 15)
1928 * @param nx [input] number of points in the X direction (default value = 100)
1929 * @param nz [input] number of points in the Z direction (default value = 100)
1930 */
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
1938 /** Draws isocontour lines of a the sum of two \c Cmp 's in a plane Z=constant.
1939 *
1940 * Z is the Cartesian coordinate relative to the absolute frame.
1941 * Solid (resp. dashed) lines correspond to positive (resp. negative)
1942 * values of the field \c uu1 \c uu2 .
1943 *
1944 * @param uu1 [input] first \c Cmp to define the field \c uu1 \c uu2 to
1945 * be drawn.
1946 * @param uu2 [input] second \c Cmp to define the field \c uu1 \c uu2 to
1947 * be drawn.
1948 * @param z0 [input] value of the coordinate Z which defines the plane
1949 * of the drawing
1950 * @param x_min [input] lowest value of absol. coord. X
1951 * @param x_max [input] highest value of absol. coord. X
1952 * @param y_min [input] lowest value of absol. coord. Y
1953 * @param y_max [input] highest value of absol. coord. Y
1954 * @param title [input] title of the figure (default value = 0x0,
1955 * corresponds to no title)
1956 * @param defsurf1 [input] pointer on a \c Cmp giving the definition of the
1957 * first surface: the surface is defined as the location
1958 * where this \c Cmp vanishes (default value = 0x0,
1959 * corresponds to no surface plot)
1960 * @param defsurf2 [input] pointer on a \c Cmp giving the definition of the
1961 * second surface: the surface is defined as the location
1962 * where this \c Cmp vanishes (default value = 0x0,
1963 * corresponds to no surface plot)
1964 * @param draw_bound [input] true for drawing the boundaries of the various
1965 * domains (default value = true)
1966 * @param ncour [input] number of isocontour lines (default value = 15)
1967 * @param nx [input] number of points in the X direction (default value = 100)
1968 * @param ny [input] number of points in the Y direction (default value = 100)
1969 */
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
1978 /** Basic routine for drawing a stellar surface in a plane X=constant.
1979 *
1980 * X is the Cartesian coordinate relative to the absolute frame.
1981 * The surface to be drawn is defined as the location where a given scalar
1982 * field vanishes.
1983 *
1984 * @param defsurf [input] field defining the
1985 * surface: the surface is defined as the location
1986 * where this \c Cmp vanishes
1987 * @param x0 [input] value of the absolute coordinate X which defines the plane
1988 * of the drawing
1989 * @param device [input] PGPLOT device (default value = 0x0)
1990 * @param newgraph [input] controls the opening/closing of the graphic device: \n
1991 * 0 : does nothing (the device must be already opened) \n
1992 * 1 : opens the device but does not close it at the end \n
1993 * 2 : closes the device at the end but does not open it at
1994 * the beginning \n
1995 * 3 (default value) : opens and closes the device
1996 * @param y_min [input] lowest value of absol. coord. Y (default value = -1)
1997 * @param y_max [input] highest value of absol. coord. Y (default value = 1)
1998 * @param z_min [input] lowest value of absol. coord. Z (default value = -1)
1999 * @param z_max [input] highest value of absol. coord. Z (default value = 1)
2000 * @param nomy [input] y legend of the figure (default value = 0x0)
2001 * @param nomz [input] z legend of the figure (default value = 0x0)
2002 * @param title [input] title of the figure (default value = 0x0)
2003 * @param nxpage [input] number of graphs in the horizontal direction of the
2004 * display window (meaningfull only if
2005 * \c newgraph = 1 or 3) (default value = 1)
2006 * @param nypage [input] number of graphs in the vertical direction of the
2007 * display window (meaningfull only if
2008 * \c newgraph = 1 or 3) (default value = 1)
2009 */
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
2016 /** Basic routine for drawing a stellar surface in a plane Y=constant.
2017 *
2018 * Y is the Cartesian coordinate relative to the absolute frame.
2019 * The surface to be drawn is defined as the location where a given scalar
2020 * field vanishes.
2021 *
2022 * @param defsurf [input] field defining the
2023 * surface: the surface is defined as the location
2024 * where this \c Cmp vanishes
2025 * @param y0 [input] value of the coordinate Y which defines the plane
2026 * of the drawing
2027 * @param device [input] PGPLOT device (default value = 0x0)
2028 * @param newgraph [input] controls the opening/closing of the graphic device: \n
2029 * 0 : does nothing (the device must be already opened) \n
2030 * 1 : opens the device but does not close it at the end \n
2031 * 2 : closes the device at the end but does not open it at
2032 * the beginning \n
2033 * 3 (default value) : opens and closes the device
2034 * @param x_min [input] lowest value of absol. coord. X (default value = -1)
2035 * @param x_max [input] highest value of absol. coord. X (default value = 1)
2036 * @param z_min [input] lowest value of absol. coord. Z (default value = -1)
2037 * @param z_max [input] highest value of absol. coord. Z (default value = 1)
2038 * @param nomx [input] x legend of the figure (default value = 0x0)
2039 * @param nomz [input] z legend of the figure (default value = 0x0)
2040 * @param title [input] title of the figure (default value = 0x0)
2041 * @param nxpage [input] number of graphs in the horizontal direction of the
2042 * display window (meaningfull only if
2043 * \c newgraph = 1 or 3) (default value = 1)
2044 * @param nypage [input] number of graphs in the vertical direction of the
2045 * display window (meaningfull only if
2046 * \c newgraph = 1 or 3) (default value = 1)
2047 */
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
2055 /** Basic routine for drawing a stellar surface in a plane Z=constant.
2056 *
2057 * Z is the Cartesian coordinate relative to the absolute frame.
2058 * The surface to be drawn is defined as the location where a given scalar
2059 * field vanishes.
2060 *
2061 * @param defsurf [input] field defining the
2062 * surface: the surface is defined as the location
2063 * where this \c Cmp vanishes
2064 * @param z0 [input] value of the coordinate Z which defines the plane
2065 * of the drawing
2066 * @param device [input] PGPLOT device (default value = 0x0)
2067 * @param newgraph [input] controls the opening/closing of the graphic device: \n
2068 * 0 : does nothing (the device must be already opened) \n
2069 * 1 : opens the device but does not close it at the end \n
2070 * 2 : closes the device at the end but does not open it at
2071 * the beginning \n
2072 * 3 (default value) : opens and closes the device
2073 * @param x_min [input] lowest value of absol. coord. X (default value = -1)
2074 * @param x_max [input] highest value of absol. coord. X (default value = 1)
2075 * @param y_min [input] lowest value of absol. coord. Y (default value = -1)
2076 * @param y_max [input] highest value of absol. coord. Y (default value = 1)
2077 * @param nomx [input] x legend of the figure (default value = 0x0)
2078 * @param nomy [input] y legend of the figure (default value = 0x0)
2079 * @param title [input] title of the figure (default value = 0x0)
2080 * @param nxpage [input] number of graphs in the horizontal direction of the
2081 * display window (meaningfull only if
2082 * \c newgraph = 1 or 3) (default value = 1)
2083 * @param nypage [input] number of graphs in the vertical direction of the
2084 * display window (meaningfull only if
2085 * \c newgraph = 1 or 3) (default value = 1)
2086 */
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
2095 /** @} */
2096
2097
2098 /**
2099 * \defgroup grafvecobs Plot of a vector field (obsolete).
2100 * \ingroup (graphics)
2101 * @{
2102 */
2103
2104 /** Plots a vector field in a plane X=constant.
2105 *
2106 * X is the Cartesian coordinate relative to the absolute frame.
2107 *
2108 * @param vv [input] vector field to be drawn
2109 * @param x0 [input] value of the coordinate X which defines the plane
2110 * of the drawing
2111 * @param scale [input] controls the length of the drawn arrows; if \c scale
2112 * is negative, the length is determined automatically by
2113 * the routine: \n
2114 * \c scale = -1 : max. length = step of the rectangular
2115 * grid \n
2116 * \c scale = -2 : max. length = 2* step of the rectangular
2117 * grid \n
2118 * etc...
2119 * @param sizefl [input] size of the arrows extremities (standard value: 1)
2120 * @param nzdes [input] number of domains for which the plot is performed:
2121 * the size of the graphic window is determined so that
2122 * the \c nzdes innermost domains fit in it (for
2123 * \c zoom = 1.)
2124 * @param title [input] title of the figure (default value = 0x0,
2125 * corresponds to no title)
2126 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
2127 * surface: the surface is defined as the location
2128 * where this \c Cmp vanishes (default value = 0x0,
2129 * corresponds to no surface plot)
2130 * @param zoom [input] Factor by which the size of the graphic window
2131 * (determined from the size of the \c nzdes innermost
2132 * domains) is multiplied (default value = 1.2)
2133 * @param draw_bound [input] true for drawing the boundaries of the various
2134 * domains (default value = true)
2135 * @param ny [input] number of points in the Y direction (default value = 20)
2136 * @param nz [input] number of points in the Z direction (default value = 20)
2137 */
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
2144 /** Plots a vector field in a plane X=constant
2145 * within a specified graphic window.
2146 *
2147 * X is the Cartesian coordinate relative to the absolute frame.
2148 *
2149 * @param vv [input] vector field to be drawn
2150 * @param x0 [input] value of the coordinate X which defines the plane
2151 * of the drawing
2152 * @param scale [input] controls the length of the drawn arrows; if \c scale
2153 * is negative, the length is determined automatically by
2154 * the routine: \n
2155 * \c scale = -1 : max. length = step of the rectangular
2156 * grid \n
2157 * \c scale = -2 : max. length = 2* step of the rectangular
2158 * grid \n
2159 * etc...
2160 * @param sizefl [input] size of the arrows extremities (standard value: 1)
2161 * @param y_min [input] lowest value of absol. coord. Y
2162 * @param y_max [input] highest value of absol. coord. Y
2163 * @param z_min [input] lowest value of absol. coord. Z
2164 * @param z_max [input] highest value of absol. coord. Z
2165 * @param title [input] title of the figure (default value = 0x0,
2166 * corresponds to no title)
2167 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
2168 * surface: the surface is defined as the location
2169 * where this \c Cmp vanishes (default value = 0x0,
2170 * corresponds to no surface plot)
2171 * @param draw_bound [input] true for drawing the boundaries of the various
2172 * domains (default value = true)
2173 * @param ny [input] number of points in the Y direction (default value = 20)
2174 * @param nz [input] number of points in the Z direction (default value = 20)
2175 */
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
2181 /** Plots a vector field in a plane Y=constant.
2182 *
2183 * Y is the Cartesian coordinate relative to the absolute frame.
2184 *
2185 * @param vv [input] vector field to be drawn
2186 * @param y0 [input] value of the coordinate Y which defines the plane
2187 * of the drawing
2188 * @param scale [input] controls the length of the drawn arrows; if \c scale
2189 * is negative, the length is determined automatically by
2190 * the routine: \n
2191 * \c scale = -1 : max. length = step of the rectangular
2192 * grid \n
2193 * \c scale = -2 : max. length = 2* step of the rectangular
2194 * grid \n
2195 * etc...
2196 * @param sizefl [input] size of the arrows extremities (standard value: 1)
2197 * @param nzdes [input] number of domains for which the plot is performed:
2198 * the size of the graphic window is determined so that
2199 * the \c nzdes innermost domains fit in it (for
2200 * \c zoom = 1.)
2201 * @param title [input] title of the figure (default value = 0x0,
2202 * corresponds to no title)
2203 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
2204 * surface: the surface is defined as the location
2205 * where this \c Cmp vanishes (default value = 0x0,
2206 * corresponds to no surface plot)
2207 * @param zoom [input] Factor by which the size of the graphic window
2208 * (determined from the size of the \c nzdes innermost
2209 * domains) is multiplied (default value = 1.2)
2210 * @param draw_bound [input] true for drawing the boundaries of the various
2211 * domains (default value = true)
2212 * @param nx [input] number of points in the X direction (default value = 20)
2213 * @param nz [input] number of points in the Z direction (default value = 20)
2214 */
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
2221 /** Plots a vector field in a plane Y=constant
2222 * within a specified graphic window.
2223 *
2224 * Y is the Cartesian coordinate relative to the absolute frame.
2225 *
2226 * @param vv [input] vector field to be drawn
2227 * @param y0 [input] value of the coordinate Y which defines the plane
2228 * of the drawing
2229 * @param scale [input] controls the length of the drawn arrows; if \c scale
2230 * is negative, the length is determined automatically by
2231 * the routine: \n
2232 * \c scale = -1 : max. length = step of the rectangular
2233 * grid \n
2234 * \c scale = -2 : max. length = 2* step of the rectangular
2235 * grid \n
2236 * etc...
2237 * @param sizefl [input] size of the arrows extremities (standard value: 1)
2238 * @param x_min [input] lowest value of absol. coord. X
2239 * @param x_max [input] highest value of absol. coord. X
2240 * @param z_min [input] lowest value of absol. coord. Z
2241 * @param z_max [input] highest value of absol. coord. Z
2242 * @param title [input] title of the figure (default value = 0x0,
2243 * corresponds to no title)
2244 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
2245 * surface: the surface is defined as the location
2246 * where this \c Cmp vanishes (default value = 0x0,
2247 * corresponds to no surface plot)
2248 * @param draw_bound [input] true for drawing the boundaries of the various
2249 * domains (default value = true)
2250 * @param nx [input] number of points in the X direction (default value = 20)
2251 * @param nz [input] number of points in the Z direction (default value = 20)
2252 */
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
2258 /** Plots a vector field in a plane Z=constant.
2259 *
2260 * Z is the Cartesian coordinate relative to the absolute frame.
2261 *
2262 * @param vv [input] vector field to be drawn
2263 * @param z0 [input] value of the coordinate Y which defines the plane
2264 * of the drawing
2265 * @param scale [input] controls the length of the drawn arrows; if \c scale
2266 * is negative, the length is determined automatically by
2267 * the routine: \n
2268 * \c scale = -1 : max. length = step of the rectangular
2269 * grid \n
2270 * \c scale = -2 : max. length = 2* step of the rectangular
2271 * grid \n
2272 * etc...
2273 * @param sizefl [input] size of the arrows extremities (standard value: 1)
2274 * @param nzdes [input] number of domains for which the plot is performed:
2275 * the size of the graphic window is determined so that
2276 * the \c nzdes innermost domains fit in it (for
2277 * \c zoom = 1.)
2278 * @param title [input] title of the figure (default value = 0x0,
2279 * corresponds to no title)
2280 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
2281 * surface: the surface is defined as the location
2282 * where this \c Cmp vanishes (default value = 0x0,
2283 * corresponds to no surface plot)
2284 * @param zoom [input] Factor by which the size of the graphic window
2285 * (determined from the size of the \c nzdes innermost
2286 * domains) is multiplied (default value = 1.2)
2287 * @param draw_bound [input] true for drawing the boundaries of the various
2288 * domains (default value = true)
2289 * @param nx [input] number of points in the X direction (default value = 20)
2290 * @param ny [input] number of points in the Y direction (default value = 20)
2291 */
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
2298 /** Plots a vector field in a plane Z=constant
2299 * within a specified graphic window.
2300 *
2301 * Z is the Cartesian coordinate relative to the absolute frame.
2302 *
2303 * @param vv [input] vector field to be drawn
2304 * @param z0 [input] value of the coordinate Z which defines the plane
2305 * of the drawing
2306 * @param scale [input] controls the length of the drawn arrows; if \c scale
2307 * is negative, the length is determined automatically by
2308 * the routine: \n
2309 * \c scale = -1 : max. length = step of the rectangular
2310 * grid \n
2311 * \c scale = -2 : max. length = 2* step of the rectangular
2312 * grid \n
2313 * etc...
2314 * @param sizefl [input] size of the arrows extremities (standard value: 1)
2315 * @param x_min [input] lowest value of absol. coord. X
2316 * @param x_max [input] highest value of absol. coord. X
2317 * @param y_min [input] lowest value of absol. coord. Y
2318 * @param y_max [input] highest value of absol. coord. Y
2319 * @param title [input] title of the figure (default value = 0x0,
2320 * corresponds to no title)
2321 * @param defsurf [input] pointer on a \c Cmp giving the definition of the
2322 * surface: the surface is defined as the location
2323 * where this \c Cmp vanishes (default value = 0x0,
2324 * corresponds to no surface plot)
2325 * @param draw_bound [input] true for drawing the boundaries of the various
2326 * domains (default value = true)
2327 * @param nx [input] number of points in the X direction (default value = 20)
2328 * @param ny [input] number of points in the Y direction (default value = 20)
2329 */
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
2336 /** Plots the sum of two vectors in a plane X=constant.
2337 *
2338 * X is the Cartesian coordinate relative to the absolute frame.
2339 *
2340 * @param vv1 [input] first vector to define the field \c vv1 + \c vv2 to
2341 * be drawn.
2342 * @param vv2 [input] second vector to define the field \c vv1 + \c vv2 to
2343 * be drawn.
2344 * @param x0 [input] value of the coordinate X which defines the plane
2345 * of the drawing
2346 * @param scale [input] controls the length of the drawn arrows; if \c scale
2347 * is negative, the length is determined automatically by
2348 * the routine: \n
2349 * \c scale = -1 : max. length = step of the rectangular
2350 * grid \n
2351 * \c scale = -2 : max. length = 2* step of the rectangular
2352 * grid \n
2353 * etc...
2354 * @param sizefl [input] size of the arrows extremities (standard value: 1)
2355 * @param y_min [input] lowest value of absol. coord. Y
2356 * @param y_max [input] highest value of absol. coord. Y
2357 * @param z_min [input] lowest value of absol. coord. Z
2358 * @param z_max [input] highest value of absol. coord. Z
2359 * @param title [input] title of the figure (default value = 0x0,
2360 * corresponds to no title)
2361 * @param defsurf1 [input] pointer on a \c Cmp giving the definition of the
2362 * first surface: the surface is defined as the location
2363 * where this \c Cmp vanishes (default value = 0x0,
2364 * corresponds to no surface plot)
2365 * @param defsurf2 [input] pointer on a \c Cmp giving the definition of the
2366 * second surface: the surface is defined as the location
2367 * where this \c Cmp vanishes (default value = 0x0,
2368 * corresponds to no surface plot)
2369 * @param draw_bound [input] true for drawing the boundaries of the various
2370 * domains (default value = true)
2371 * @param ny [input] number of points in the Y direction (default value = 20)
2372 * @param nz [input] number of points in the Z direction (default value = 20)
2373 */
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
2381 /** Plots the sum of two vectors in a plane Y=constant.
2382 *
2383 * Y is the Cartesian coordinate relative to the absolute frame.
2384 *
2385 * @param vv1 [input] first vector to define the field \c vv1 + \c vv2 to
2386 * be drawn.
2387 * @param vv2 [input] second vector to define the field \c vv1 + \c vv2 to
2388 * be drawn.
2389 * @param y0 [input] value of the coordinate Y which defines the plane
2390 * of the drawing
2391 * @param scale [input] controls the length of the drawn arrows; if \c scale
2392 * is negative, the length is determined automatically by
2393 * the routine: \n
2394 * \c scale = -1 : max. length = step of the rectangular
2395 * grid \n
2396 * \c scale = -2 : max. length = 2* step of the rectangular
2397 * grid \n
2398 * etc...
2399 * @param sizefl [input] size of the arrows extremities (standard value: 1)
2400 * @param x_min [input] lowest value of absol. coord. X
2401 * @param x_max [input] highest value of absol. coord. X
2402 * @param z_min [input] lowest value of absol. coord. Z
2403 * @param z_max [input] highest value of absol. coord. Z
2404 * @param title [input] title of the figure (default value = 0x0,
2405 * corresponds to no title)
2406 * @param defsurf1 [input] pointer on a \c Cmp giving the definition of the
2407 * first surface: the surface is defined as the location
2408 * where this \c Cmp vanishes (default value = 0x0,
2409 * corresponds to no surface plot)
2410 * @param defsurf2 [input] pointer on a \c Cmp giving the definition of the
2411 * second surface: the surface is defined as the location
2412 * where this \c Cmp vanishes (default value = 0x0,
2413 * corresponds to no surface plot)
2414 * @param draw_bound [input] true for drawing the boundaries of the various
2415 * domains (default value = true)
2416 * @param nx [input] number of points in the X direction (default value = 20)
2417 * @param nz [input] number of points in the Z direction (default value = 20)
2418 */
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
2426 /** Plots the sum of two vectors in a plane Z=constant.
2427 *
2428 * Z is the Cartesian coordinate relative to the absolute frame.
2429 *
2430 * @param vv1 [input] first vector to define the field \c vv1 + \c vv2 to
2431 * be drawn.
2432 * @param vv2 [input] second vector to define the field \c vv1 + \c vv2 to
2433 * be drawn.
2434 * @param z0 [input] value of the coordinate Z which defines the plane
2435 * of the drawing
2436 * @param scale [input] controls the length of the drawn arrows; if \c scale
2437 * is negative, the length is determined automatically by
2438 * the routine: \n
2439 * \c scale = -1 : max. length = step of the rectangular
2440 * grid \n
2441 * \c scale = -2 : max. length = 2* step of the rectangular
2442 * grid \n
2443 * etc...
2444 * @param sizefl [input] size of the arrows extremities (standard value: 1)
2445 * @param x_min [input] lowest value of absol. coord. X
2446 * @param x_max [input] highest value of absol. coord. X
2447 * @param y_min [input] lowest value of absol. coord. Y
2448 * @param y_max [input] highest value of absol. coord. Y
2449 * @param title [input] title of the figure (default value = 0x0,
2450 * corresponds to no title)
2451 * @param defsurf1 [input] pointer on a \c Cmp giving the definition of the
2452 * first surface: the surface is defined as the location
2453 * where this \c Cmp vanishes (default value = 0x0,
2454 * corresponds to no surface plot)
2455 * @param defsurf2 [input] pointer on a \c Cmp giving the definition of the
2456 * second surface: the surface is defined as the location
2457 * where this \c Cmp vanishes (default value = 0x0,
2458 * corresponds to no surface plot)
2459 * @param draw_bound [input] true for drawing the boundaries of the various
2460 * domains (default value = true)
2461 * @param nx [input] number of points in the X direction (default value = 20)
2462 * @param ny [input] number of points in the Y direction (default value = 20)
2463 */
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
2471 /** @} */
2472
2473
2474
2475 /**
2476 * \defgroup graftime Time evolution graphs.
2477 * \ingroup (graphics)
2478 * @{
2479 */
2480
2481 /** Plots the variation of some quantity against time.
2482 *
2483 * @param uu [input] evolving scalar quantity
2484 * @param nomy [input] y legend of the figure (default value = 0x0,
2485 * corresponds to no y legend)
2486 * @param title [input] title of the figure (default value = 0x0,
2487 * corresponds to no title)
2488 * @param ngraph [input] Index of the graphic device (in the range [0,99])
2489 * to be used for the plot: if this device has never been used or is closed,
2490 * it will be opened.
2491 * @param device [input] type of PGPLOT device: 0x0 (default value) will
2492 * result in interactive choice; \c "/xwin" in X-Window display;
2493 * \c "filename.eps/cps" in Encapsulated PostScript output
2494 * and \c "/n" in no output.
2495 * @param closeit [input] determines whether the graphic device must be closed or not
2496 * after the plot has been performed
2497 * @param show_time [input] determines whether the x axis is labelled with
2498 * time or with time step
2499 * @param nomx [input] x legend of the figure (default value = 0x0,
2500 * corresponds to "t" if \c show_time=true and
2501 * to "j" if \c show_time=false )
2502 */
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
2507 /** Plots the variation of some quantity against time on a specified time interval.
2508 *
2509 * @param uu [input] evolving scalar quantity
2510 * @param j_min [input] minimal time step for the plot
2511 * @param j_max [input] maximal time step for the plot
2512 * @param nomy [input] y legend of the figure (default value = 0x0,
2513 * corresponds to no y legend)
2514 * @param title [input] title of the figure (default value = 0x0,
2515 * corresponds to no title)
2516 * @param ngraph [input] Index of the graphic device (in the range [0,99])
2517 * to be used for the plot: if this device has never been used or is closed,
2518 * it will be opened.
2519 * @param device [input] type of PGPLOT device: 0x0 (default value) will
2520 * result in interactive choice; \c "/xwin" in X-Window display;
2521 * \c "filename.eps/cps" in Encapsulated PostScript output
2522 * and \c "/n" in no output.
2523 * @param closeit [input] determines whether the graphic device must be closed or not
2524 * after the plot has been performed
2525 * @param show_time [input] determines whether the x axis is labelled with
2526 * time or with time step
2527 * @param nomx [input] x legend of the figure (default value = 0x0,
2528 * corresponds to "t" if \c show_time=true and
2529 * to "j" if \c show_time=false )
2530 */
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
2537 /** @} */
2538
2539
2540 }
2541 #endif