GLVis  v4.0
Accurate and flexible finite element visualization
Functions | Variables
glvis.cpp File Reference

Go to the source code of this file.

Functions

void PrintSampleUsage (ostream &out)
 
void ReadSerial ()
 
void SetGridFunction ()
 
void SetMeshSolution (Mesh *mesh, GridFunction *&grid_f, bool save_coloring)
 
void ReadParallel ()
 
int ReadParMeshAndGridFunction (int np, const char *mesh_prefix, const char *sol_prefix, Mesh **mesh_p, GridFunction **sol_p, int keep_attr)
 
int ReadInputStreams ()
 
void CloseInputStreams (bool)
 
GridFunction * ProjectVectorFEGridFunction (GridFunction *)
 
void Extrude1DMeshAndSolution (Mesh **mesh_p, GridFunction **grid_f_p, Vector *sol)
 
int ReadStream (istream &is, const string &data_type)
 
int InitVis (int t)
 
void StartVisualization (int field_type)
 
int ScriptReadSolution (istream &scr, Mesh **mp, GridFunction **sp)
 
int ScriptReadParSolution (istream &scr, Mesh **mp, GridFunction **sp)
 
int ScriptReadDisplMesh (istream &scr, Mesh **mp, GridFunction **sp)
 
void ExecuteScriptCommand ()
 
void ScriptControl ()
 
void ScriptIdleFunc ()
 
void PlayScript (istream &scr)
 
int main (int argc, char *argv[])
 

Variables

const char * string_none = "(none)"
 
const char * string_default = "(default)"
 
const char * mesh_file = string_none
 
const char * sol_file = string_none
 
const char * vec_sol_file = string_none
 
const char * gfunc_file = string_none
 
const char * arg_keys = string_none
 
int np = 0
 
int pad_digits = 6
 
int gf_component = -1
 
bool fix_elem_orient = false
 
bool save_coloring = false
 
bool keep_attr = false
 
int window_x = 0
 
int window_y = 0
 
int window_w = 400
 
int window_h = 350
 
const char * window_title = string_default
 
const char * c_plot_caption = string_none
 
string plot_caption
 
string extra_caption
 
int input = 1
 
Mesh * mesh = NULL
 
Vector sol
 
Vector solu
 
Vector solv
 
Vector solw
 
Vector normals
 
GridFunction * grid_f = NULL
 
int is_gf = 0
 
string keys
 
VisualizationSceneScalarDatavs = NULL
 
GeometryRefiner GLVisGeometryRefiner
 
const char * window_titles []
 
istream * script = NULL
 
int scr_running = 0
 
int scr_level = 0
 
Vector * init_nodes = NULL
 
double scr_min_val
 
double scr_max_val
 
Array< istream * > input_streams
 
char ** environ
 

Function Documentation

◆ CloseInputStreams()

void CloseInputStreams ( bool  parent)

Definition at line 2104 of file glvis.cpp.

◆ ExecuteScriptCommand()

void ExecuteScriptCommand ( )

Definition at line 638 of file glvis.cpp.

◆ Extrude1DMeshAndSolution()

void Extrude1DMeshAndSolution ( Mesh **  mesh_p,
GridFunction **  grid_f_p,
Vector *  sol 
)

Definition at line 2141 of file glvis.cpp.

◆ InitVis()

int InitVis ( int  t)

Definition at line 337 of file glvis.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 1134 of file glvis.cpp.

◆ PlayScript()

void PlayScript ( istream &  scr)

Definition at line 1055 of file glvis.cpp.

◆ PrintSampleUsage()

void PrintSampleUsage ( ostream &  out)

Definition at line 1740 of file glvis.cpp.

◆ ProjectVectorFEGridFunction()

GridFunction * ProjectVectorFEGridFunction ( GridFunction *  gf)

Definition at line 2121 of file glvis.cpp.

◆ ReadInputStreams()

int ReadInputStreams ( )

Definition at line 2031 of file glvis.cpp.

◆ ReadParallel()

void ReadParallel ( )

Definition at line 1909 of file glvis.cpp.

◆ ReadParMeshAndGridFunction()

int ReadParMeshAndGridFunction ( int  np,
const char *  mesh_prefix,
const char *  sol_prefix,
Mesh **  mesh_p,
GridFunction **  sol_p,
int  keep_attr 
)

Definition at line 1940 of file glvis.cpp.

◆ ReadSerial()

void ReadSerial ( )

Definition at line 1755 of file glvis.cpp.

◆ ReadStream()

int ReadStream ( istream &  is,
const string &  data_type 
)

Definition at line 109 of file glvis.cpp.

◆ ScriptControl()

void ScriptControl ( )

Definition at line 1041 of file glvis.cpp.

◆ ScriptIdleFunc()

void ScriptIdleFunc ( )

Definition at line 1032 of file glvis.cpp.

◆ ScriptReadDisplMesh()

int ScriptReadDisplMesh ( istream &  scr,
Mesh **  mp,
GridFunction **  sp 
)

Definition at line 578 of file glvis.cpp.

◆ ScriptReadParSolution()

int ScriptReadParSolution ( istream &  scr,
Mesh **  mp,
GridFunction **  sp 
)

Definition at line 544 of file glvis.cpp.

◆ ScriptReadSolution()

int ScriptReadSolution ( istream &  scr,
Mesh **  mp,
GridFunction **  sp 
)

Definition at line 503 of file glvis.cpp.

◆ SetGridFunction()

void SetGridFunction ( )

Definition at line 1822 of file glvis.cpp.

◆ SetMeshSolution()

void SetMeshSolution ( Mesh *  mesh,
GridFunction *&  grid_f,
bool  save_coloring 
)

Definition at line 1856 of file glvis.cpp.

◆ StartVisualization()

void StartVisualization ( int  field_type)

Definition at line 347 of file glvis.cpp.

Variable Documentation

◆ arg_keys

const char* arg_keys = string_none

Definition at line 41 of file glvis.cpp.

◆ c_plot_caption

const char* c_plot_caption = string_none

Definition at line 53 of file glvis.cpp.

◆ environ

char** environ

◆ extra_caption

string extra_caption

Definition at line 55 of file glvis.cpp.

◆ fix_elem_orient

bool fix_elem_orient = false

Definition at line 45 of file glvis.cpp.

◆ gf_component

int gf_component = -1

Definition at line 44 of file glvis.cpp.

◆ gfunc_file

const char* gfunc_file = string_none

Definition at line 40 of file glvis.cpp.

◆ GLVisGeometryRefiner

GeometryRefiner GLVisGeometryRefiner

Definition at line 66 of file glvis.cpp.

◆ grid_f

GridFunction* grid_f = NULL

Definition at line 61 of file glvis.cpp.

◆ init_nodes

Vector* init_nodes = NULL

Definition at line 74 of file glvis.cpp.

◆ input

int input = 1

Definition at line 58 of file glvis.cpp.

◆ input_streams

Array<istream *> input_streams

Definition at line 77 of file glvis.cpp.

◆ is_gf

int is_gf = 0

Definition at line 62 of file glvis.cpp.

◆ keep_attr

bool keep_attr = false

Definition at line 47 of file glvis.cpp.

◆ keys

string keys

Definition at line 63 of file glvis.cpp.

◆ mesh

Mesh* mesh = NULL

Definition at line 59 of file glvis.cpp.

◆ mesh_file

const char* mesh_file = string_none

Definition at line 37 of file glvis.cpp.

◆ normals

Vector normals

Definition at line 60 of file glvis.cpp.

◆ np

int np = 0

Definition at line 42 of file glvis.cpp.

◆ pad_digits

int pad_digits = 6

Definition at line 43 of file glvis.cpp.

◆ plot_caption

string plot_caption

Definition at line 54 of file glvis.cpp.

◆ save_coloring

bool save_coloring = false

Definition at line 46 of file glvis.cpp.

◆ scr_level

int scr_level = 0

Definition at line 73 of file glvis.cpp.

◆ scr_max_val

double scr_max_val

Definition at line 75 of file glvis.cpp.

◆ scr_min_val

double scr_min_val

Definition at line 75 of file glvis.cpp.

◆ scr_running

int scr_running = 0

Definition at line 72 of file glvis.cpp.

◆ script

istream* script = NULL

Definition at line 71 of file glvis.cpp.

◆ sol

Vector sol

Definition at line 60 of file glvis.cpp.

◆ sol_file

const char* sol_file = string_none

Definition at line 38 of file glvis.cpp.

◆ solu

Vector solu

Definition at line 60 of file glvis.cpp.

◆ solv

Vector solv

Definition at line 60 of file glvis.cpp.

◆ solw

Vector solw

Definition at line 60 of file glvis.cpp.

◆ string_default

const char* string_default = "(default)"

Definition at line 34 of file glvis.cpp.

◆ string_none

const char* string_none = "(none)"

Definition at line 33 of file glvis.cpp.

◆ vec_sol_file

const char* vec_sol_file = string_none

Definition at line 39 of file glvis.cpp.

◆ vs

Definition at line 64 of file glvis.cpp.

◆ window_h

int window_h = 350

Definition at line 51 of file glvis.cpp.

◆ window_title

const char* window_title = string_default

Definition at line 52 of file glvis.cpp.

◆ window_titles

const char* window_titles[]
Initial value:
= { "GLVis [scalar data]",
"GLVis [vector data]", "GLVis [mesh]"
}

Definition at line 68 of file glvis.cpp.

◆ window_w

int window_w = 400

Definition at line 50 of file glvis.cpp.

◆ window_x

int window_x = 0

Definition at line 48 of file glvis.cpp.

◆ window_y

int window_y = 0

Definition at line 49 of file glvis.cpp.