28char scalar_visu_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Tensor/Scalar/scalar_visu.C,v 1.9 2014/10/13 08:53:47 j_novak Exp $" ;
83 plane.set_etat_qcq() ;
106 plane.set(0,0) = 0. ;
107 plane.set(0,1) = aa ;
108 plane.set(0,2) = 0. ;
110 plane.set(1,0) = 1. ;
111 plane.set(1,1) = 0. ;
112 plane.set(1,2) = 0. ;
114 plane.set(2,0) = 0. ;
115 plane.set(2,1) = 0. ;
116 plane.set(2,2) = 1. ;
124 plane.set(0,0) = 0. ;
125 plane.set(0,1) = 0. ;
126 plane.set(0,2) = aa ;
128 plane.set(1,0) = 1. ;
129 plane.set(1,1) = 0. ;
130 plane.set(1,2) = 0. ;
132 plane.set(2,0) = 0. ;
133 plane.set(2,1) = 1. ;
134 plane.set(2,2) = 0. ;
142 cerr <<
"Scalar::visu_section : unknown type of section ! \n" ;
163 title =
new char[2] ;
197 fdata <<
"size : " <<
nu <<
" x " <<
nv <<
"\n" ;
225 fdata.setf(ios::scientific) ;
234 for (
int j=0;
j<
nv;
j++) {
238 for (
int i=0;
i<
nu;
i++) {
251 mp->convert_absolute(xa, ya, za,
rr,
th,
ph) ;
261 double ff =
cva.val_point(
l, xi,
th,
ph) ;
306 fheader <<
"positions = regular, regular, " <<
umin <<
", " <<
du
321 system(
"rm -f visu_section.dxhead") ;
323 system(
"dx -image visu_section.net &") ;
362 title =
new char[2] ;
396 fdata <<
"size : " <<
nx <<
" x " <<
ny <<
" x " << nz <<
"\n" ;
397 fdata <<
"x_min = " << xmin <<
" x_max = " << xmax <<
"\n" ;
398 fdata <<
"y_min = " << ymin <<
" y_max = " << ymax <<
"\n" ;
410 fdata.setf(ios::scientific) ;
414 double dx = (xmax - xmin) /
double(
nx-1) ;
415 double dy = (ymax - ymin) /
double(
ny-1) ;
420 for (
int k=0;
k<nz;
k++) {
424 for (
int j=0;
j<
ny;
j++) {
426 double yy = ymin +
dy *
j ;
428 for (
int i=0;
i<
nx;
i++) {
430 double xx = xmin +
dx *
i ;
445 double ff =
cva.val_point(
l, xi,
th,
ph) ;
492 fheader <<
"positions = regular, regular, regular, "
493 << xmin <<
", " <<
dx <<
", "
494 << ymin <<
", " <<
dy <<
", "
509 system(
"rm -f visu_scalar_box.dxhead") ;
511 system(
"dx -image visu_scalar_box.net &") ;
536 double umax,
double vmin,
double vmax,
int jtime,
double ,
538 int nu,
int nv)
const {
571 system(
"dx -edit anime.net &") ;
Time evolution with partial storage (*** under development ***).
Base class for pure radial mappings.
Coefficients storage for the multi-domain spectral method.
Tensor field of valence 0 (or component of a tensorial field).
void visu_box(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, const char *title0=0x0, const char *filename0=0x0, bool start_dx=true, int nx=40, int ny=40, int nz=40) const
3D visualization (volume rendering) via OpenDX.
bool check_dzpuis(int dzi) const
Returns false if the last domain is compactified and *this is not zero in this domain and dzpuis is n...
void visu_section_anim(const char section_type, double aa, double umin, double umax, double vmin, double vmax, int jtime, double ttime, int jgraph=1, const char *title=0x0, const char *filename_root=0x0, bool start_dx=false, int nu=200, int nv=200) const
3D visualization via time evolving plane section (animation).
void visu_section(const char section_type, double aa, double umin, double umax, double vmin, double vmax, const char *title=0x0, const char *filename=0x0, bool start_dx=true, int nu=200, int nv=200) const
3D visualization via a plane section.
Valeur va
The numerical value of the Scalar
int dzpuis
Power of r by which the quantity represented by this must be divided in the compactified external d...
Values and coefficients of a (real-value) function.
Mtbl_cf * c_cf
Coefficients of the spectral expansion of the function.
void coef() const
Computes the coeffcients of *this.
const Map *const mp
Mapping on which the numerical values at the grid points are defined.