outdrivert Class Reference

#include <outdrivert.h>

List of all members.

Public Member Functions

void close_files_gidsp ()
 prints footers for GiD separated format
void create_files_gidsp (char *mode)
 creates output graphics files and their headers for GiD separated format (grftt_gidsp)
 outdrivert ()
 constructor
void print (FILE *out)
 prints description data to file
void print_diags (long lcid, double lambda, long istep, double *fi)
 prints diagrams
void print_diags_forced (long lcid, double lambda, long istep, double *fi)
 the forced print of diagrams
void print_graphics (FILE *out, long lcid, double lambda, long istep, double *fi)
 prints graphics
void print_graphics_forced (FILE *out, long lcid, double lambda, long istep, double *fi)
 the forced print of graphics
void print_header (FILE *out)
 prints header for output file
void print_newstep (FILE *out, long lcid, long istep, double time)
 prints header for new step
void print_out (FILE *out, long lcid, long istep, double time)
 prints values at nodes
void print_out_forced (FILE *out, long lcid, long istep, double time)
 the forced print of values to the text file
long read (XFILE *in)
 reads data from file
 ~outdrivert ()
 destructor

Public Attributes

double ** bvlcs
 base vectors each lcs has base vectors stored in one row
elemoutt eo
 description what will be printed from element values
elemoutgt eog
 description what will be printed from element values for graphics
graphftt gf
 format of grahics file - 0 - none, 1 - openDX, 2 - FemCAD
long ide1
 number of the first element for GiD output (normally should be 1), set by print_init function
long idn1
 number of the first node for GiD output (normally should be 1), set by print_init function
long * nclcs
 number of components of base vectors
long ncut
 number of cuts exported from 3d mesh to GiD
long ndiag
 number of output diagrams
long nlcs
 number of local coordinate systems
nodeoutt no
 description what will be printed from nodal values
nodeoutgt nog
 description what will be printed from nodal values for graphics
outdiagtodiag
 array with description of printed diagrams
FILE ** outdiagf
 output diagram files
char outdiagfn [1001]
 output diagrams filename
FILE * outf
 output text file
char outfn [1001]
 output text filename
FILE * outgr
 output graphics file
char outgrfn [1001]
 output graphics filename
char outgrfngs [1001+50]
 generated output graphic file name for grftt_gid_sep format
pointoutt po
 description what will be printed for each user def. point
flagsw textout
 text output flag
long vtk_num
 number of file sequence in VTK graphic output

Detailed Description

Definition at line 315 of file outdrivert.h.


Constructor & Destructor Documentation

outdrivert (  ) 

constructor

Constructor initializes data members to zero values.

Definition at line 27 of file outdrivert.cpp.

References bvlcs, FNAMELEN, gf, grftt_no, ide1, idn1, memset(), nclcs, ncut, ndiag, nlcs, odiag, off, outdiagf, outdiagfn, outf, outfn, outgr, outgrfn, textout, and vtk_num.

~outdrivert (  ) 

destructor

Destructor deallocates used memory.

Definition at line 52 of file outdrivert.cpp.

References bvlcs, nclcs, nlcs, odiag, and outdiagf.


Member Function Documentation

void close_files_gidsp (  ) 

prints footers for GiD separated format

Function prints footers for GiD separated format (grftt_gidsp) in case of adaptivity. For this format (grftt_gidsp) each required quantity is printed to the sparated file named in following way : filename.{elem|nodal}_{quanitity}{indexOfQuantity}.flavia.res quatnitity can be : uknowns, grad, flux, pgrad, pflux, other, eqother.

Definition at line 852 of file outdrivert.cpp.

References elemoutgt::dstep, nodeoutgt::dstep, eog, footer, gf, grftt_gid_sep, ide1, nog, outgrfngs, elemoutgt::print_graphics(), nodeoutgt::print_graphics(), sel_no, and sel::st.

Referenced by print_closet().

void create_files_gidsp ( char *  mode  ) 

creates output graphics files and their headers for GiD separated format (grftt_gidsp)

Function creates output graphics files and their headers for GiD separated format (grftt_gidsp). For this format (grftt_gidsp) each required quantity is printed to the sparated file named in following way : filename.{elem|nodal}_{quanitity}{indexOfQuantity}.flavia.res quatnitity can be : uknowns, grad, flux, pgrad, pflux, other, eqother.

Parameters:
mode - opening mode for opened text files

Definition at line 826 of file outdrivert.cpp.

References elemoutgt::dstep, nodeoutgt::dstep, eog, gf, grftt_gid_sep, header, ide1, nog, outgrfngs, elemoutgt::print_graphics(), nodeoutgt::print_graphics(), sel_no, and sel::st.

Referenced by print_initt().

void print ( FILE *  out  ) 

prints description data to file

Function prints data with output description to the text file given by out.

Parameters:
out - pointer to opened text file for output

Definition at line 260 of file outdrivert.cpp.

References discont_nonlin_nonstat_problem, discont_nonstat_problem, eo, eog, gf, grftt_no, growing_np_problem, growing_np_problem_nonlin, ndiag, no, nog, nonlinear_nonstationary_problem, nonstationary_problem, odiag, on, outdiagfn, outfn, outgrfn, po, elemoutgt::print(), nodeoutgt::print(), pointoutt::print(), elemoutt::print(), nodeoutt::print(), textout, Tp, and probdesct::tprob.

Referenced by main().

void print_diags ( long  lcid,
double  lambda,
long  istep,
double *  fi 
)

prints diagrams

Function prints diagrams.

Parameters:
lcid - required load case id
lambda - actual load parameter/actual time
istep - actual step id
fi - array with values of load vector

Definition at line 428 of file outdrivert.cpp.

References ndiag, odiag, and outdiagf.

Referenced by print_stept().

void print_diags_forced ( long  lcid,
double  lambda,
long  istep,
double *  fi 
)

the forced print of diagrams

Function prints diagrams.

Parameters:
lcid - required load case id
lambda - actual load parameter/actual time
istep - actual step id
fi - array with values of load vector

Created by Tomas Koudelka, 2014

Definition at line 447 of file outdrivert.cpp.

References ndiag, odiag, and outdiagf.

Referenced by print_stept_forced().

void print_graphics ( FILE *  out,
long  lcid,
double  lambda,
long  istep,
double *  fi 
)

prints graphics

Function prints required value to the graphics files.

Parameters:
out - pointer to the opened text file
lcid - required load case id
lambda - actual load parameter/actual time
istep - actual step id
fi - array with values of load vector

Definition at line 466 of file outdrivert.cpp.

References dayst, elemoutgt::dstep, nodeoutgt::dstep, eog, filename_decomposition(), FNAMELEN, gf, grftt_femcad, grftt_gid, grftt_gid_sep, grftt_no, grftt_open_dx, grftt_vtk, hf_off, hourst, ide1, minutest, nog, outgrfn, outgrfngs, sel::presence_id(), print_default_vtk(), print_err(), elemoutgt::print_graphics(), nodeoutgt::print_graphics(), secondst, stationary_problem, probdesct::timecont, Tp, probdesct::tprob, probdesct::tprt, vtk_num, and write_vtk_unkn().

Referenced by print_stept().

void print_graphics_forced ( FILE *  out,
long  lcid,
double  lambda,
long  istep,
double *  fi 
)

the forced print of graphics

Function prints required value to the graphics files.

Parameters:
out - pointer to the opened text file
lcid - required load case id
lambda - actual load parameter/actual time
istep - actual step id
fi - array with values of load vector

Created by Tomas Koudelka, 2014

Definition at line 659 of file outdrivert.cpp.

References dayst, eog, filename_decomposition(), FNAMELEN, gf, grftt_femcad, grftt_gid, grftt_gid_sep, grftt_no, grftt_open_dx, grftt_vtk, hf_off, hourst, ide1, minutest, nog, outgrfn, outgrfngs, print_default_vtk(), print_err(), elemoutgt::print_graphics(), nodeoutgt::print_graphics(), secondst, stationary_problem, Tp, probdesct::tprob, probdesct::tprt, vtk_num, and write_vtk_unkn().

Referenced by print_stept_forced().

void print_header ( FILE *  out  ) 

prints header for output file

Function prints header to the output text file.

Parameters:
out - pointer to the opened text output file

Definition at line 307 of file outdrivert.cpp.

References probdesct::name, and Tp.

Referenced by print_initt().

void print_newstep ( FILE *  out,
long  lcid,
long  istep,
double  time 
)

prints header for new step

Function prints step number to the output text file.

Parameters:
out - pointer to the opened text output file
lcid - load case id
step - integer step id
time - time or load step

Definition at line 329 of file outdrivert.cpp.

References dayst, pointoutt::dstep, elemoutt::dstep, nodeoutt::dstep, eo, hourst, minutest, no, on, po, sel::presence_id(), print_err(), secondst, textout, probdesct::timecont, Tp, and probdesct::tprt.

Referenced by print_stept(), and print_stept_forced().

void print_out ( FILE *  out,
long  lcid,
long  istep,
double  time 
)

prints values at nodes

Function prints required output values to the output text file.

Parameters:
out - pointer to the opened text file
lcid - load case id
istep - step id
time - actual time step

Definition at line 381 of file outdrivert.cpp.

References pointoutt::dstep, elemoutt::dstep, nodeoutt::dstep, eo, no, on, po, sel::presence_id(), pointoutt::print_out(), elemoutt::print_out(), nodeoutt::print_out(), textout, probdesct::timecont, and Tp.

Referenced by print_stept().

void print_out_forced ( FILE *  out,
long  lcid,
long  istep,
double  time 
)

the forced print of values to the text file

Function prints required output values to the output text file.

Parameters:
out - pointer to the opened text file
lcid - load case id
istep - step id
time - actual time step

Created by Tomas Koudelka, 2014

Definition at line 407 of file outdrivert.cpp.

References eo, no, on, po, pointoutt::print_out(), elemoutt::print_out(), nodeoutt::print_out(), and textout.

Referenced by print_stept_forced().

long read ( XFILE in  ) 

reads data from file

Function reads description of required output from the opened text file in.

Parameters:
in - pointer to opened text file
Return values:
0 - on success
1 - error reading output text filename
2 - error reading nodal output description
3 - error reading element output description
4 - error reading user defined point output description
5 - error reading output graphics description
6 - error reading output diagram description

Definition at line 78 of file outdrivert.cpp.

References discont_nonlin_nonstat_problem, discont_nonstat_problem, elemoutgt::dstep, nodeoutgt::dstep, pointoutt::dstep, elemoutt::dstep, nodeoutt::dstep, eo, eog, probdesct::eqotheraver, probdesct::eqothercomp, probdesct::eqotherpos, flagsw_kwdset(), probdesct::fluxaver, probdesct::fluxcomp, probdesct::fluxpos, gf, probdesct::gradaver, probdesct::gradcomp, probdesct::gradpos, graphftt_kwdset(), grftt_femcad, grftt_gid, grftt_gid_sep, grftt_no, grftt_open_dx, grftt_vtk, growing_np_problem, growing_np_problem_nonlin, memset(), Mesprt, ndiag, no, nog, nonlinear_nonstationary_problem, nonstationary_problem, odiag, probdesct::otheraver, probdesct::othercomp, probdesct::otherpos, outdiagf, outdiagfn, outfn, outgrfn, po, elemoutgt::read(), nodeoutgt::read(), pointoutt::read(), elemoutt::read(), nodeoutt::read(), sel_no, sel::st, textout, Tp, probdesct::tprob, and xfscanf().

Referenced by main(), metr_init(), pmetr_init(), ptrfel_init(), and trfel_init().


Member Data Documentation

double** bvlcs

base vectors each lcs has base vectors stored in one row

Definition at line 381 of file outdrivert.h.

Referenced by outdrivert(), and ~outdrivert().

description what will be printed from element values

Definition at line 367 of file outdrivert.h.

Referenced by aepointst::init(), print(), print_newstep(), print_out(), print_out_forced(), and read().

description what will be printed from element values for graphics

Definition at line 374 of file outdrivert.h.

Referenced by close_files_gidsp(), create_files_gidsp(), print(), print_graphics(), print_graphics_forced(), read(), write_gid_elem_type_scalart(), write_gid_elem_type_vectort(), and write_vtk_unkn().

format of grahics file - 0 - none, 1 - openDX, 2 - FemCAD

Definition at line 384 of file outdrivert.h.

Referenced by close_files_gidsp(), create_files_gidsp(), outdrivert(), pmetr_init(), print(), print_closet(), print_graphics(), print_graphics_forced(), print_initt(), ptrfel_init(), and read().

long ide1

number of the first element for GiD output (normally should be 1), set by print_init function

Definition at line 390 of file outdrivert.h.

Referenced by close_files_gidsp(), create_files_gidsp(), outdrivert(), print_graphics(), print_graphics_forced(), print_initt(), write_gid_elem_type_scalart(), and write_gid_elem_type_vectort().

long idn1

number of the first node for GiD output (normally should be 1), set by print_init function

Definition at line 388 of file outdrivert.h.

Referenced by outdrivert(), print_initt(), write_gid_nforcest(), write_gid_nodscalart(), write_gid_nodvectort(), and write_gid_unkn().

long* nclcs

number of components of base vectors

Definition at line 379 of file outdrivert.h.

Referenced by outdrivert(), and ~outdrivert().

long ncut

number of cuts exported from 3d mesh to GiD

Definition at line 386 of file outdrivert.h.

Referenced by outdrivert(), and print_initt().

long ndiag

number of output diagrams

Definition at line 396 of file outdrivert.h.

Referenced by outdrivert(), pmetr_init(), print(), print_closet(), print_diags(), print_diags_forced(), print_flusht(), print_initt(), ptrfel_init(), and read().

long nlcs

number of local coordinate systems

Definition at line 377 of file outdrivert.h.

Referenced by outdrivert(), and ~outdrivert().

description what will be printed from nodal values

Definition at line 365 of file outdrivert.h.

Referenced by print(), print_newstep(), print_out(), print_out_forced(), and read().

description what will be printed from nodal values for graphics

Definition at line 372 of file outdrivert.h.

Referenced by close_files_gidsp(), create_files_gidsp(), print(), print_graphics(), print_graphics_forced(), and read().

array with description of printed diagrams

Definition at line 398 of file outdrivert.h.

Referenced by outdrivert(), print(), print_diags(), print_diags_forced(), print_initt(), read(), and ~outdrivert().

FILE** outdiagf

output diagram files

Definition at line 360 of file outdrivert.h.

Referenced by outdrivert(), print_closet(), print_diags(), print_diags_forced(), print_flusht(), print_initt(), read(), and ~outdrivert().

char outdiagfn[1001]

output diagrams filename

Definition at line 349 of file outdrivert.h.

Referenced by outdrivert(), pmetr_init(), print(), print_initt(), ptrfel_init(), and read().

FILE* outf

output text file

Definition at line 358 of file outdrivert.h.

Referenced by outdrivert(), print_closet(), print_flusht(), print_initt(), print_stept(), and print_stept_forced().

char outfn[1001]

output text filename

Definition at line 347 of file outdrivert.h.

Referenced by metr_init(), outdrivert(), pmetr_init(), print(), print_initt(), ptrfel_init(), read(), and trfel_init().

FILE* outgr

output graphics file

Definition at line 362 of file outdrivert.h.

Referenced by outdrivert(), print_closet(), print_flusht(), print_initt(), print_stept(), and print_stept_forced().

char outgrfn[1001]

output graphics filename

Definition at line 351 of file outdrivert.h.

Referenced by outdrivert(), pmetr_init(), print(), print_graphics(), print_graphics_forced(), print_initt(), ptrfel_init(), and read().

char outgrfngs[1001+50]

generated output graphic file name for grftt_gid_sep format

Definition at line 353 of file outdrivert.h.

Referenced by close_files_gidsp(), create_files_gidsp(), print_graphics(), print_graphics_forced(), and print_initt().

description what will be printed for each user def. point

Definition at line 369 of file outdrivert.h.

Referenced by print(), print_newstep(), print_out(), print_out_forced(), and read().

text output flag

Definition at line 356 of file outdrivert.h.

Referenced by outdrivert(), print(), print_initt(), print_newstep(), print_out(), print_out_forced(), and read().

long vtk_num

number of file sequence in VTK graphic output

Definition at line 393 of file outdrivert.h.

Referenced by outdrivert(), print_graphics(), and print_graphics_forced().


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2