outdriverm Class Reference

#include <outdriverm.h>

List of all members.

Public Member Functions

void conv_sel_prop (siftop *top)
 converts selections given by property id to list or range type
void create_files_gidsp (const char *mode)
 creates output graphics files and their headers for GiD separated format (grfmt_gidsp)
 outdriverm ()
 constructor
void print (FILE *out)
 prints description data to file
void print_default_vtk (FILE *fname, long lcid, long istep, double lambda)
 prints header, points and used elements to the VTK 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)
 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)
 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 to the text file
void print_out_forced (FILE *out, long lcid, long istep, double time)
 forced print of values to the text file
long read (XFILE *in)
 reads data from file
long testlcs ()
 tests the output setting whether it requires some local coordinate system
void write_vtk_unkn (FILE *fname, long lcid, const char *desclcid)
 prints data to the VTK file
 ~outdriverm ()
 destructor

Public Attributes

elemoutm eo
 description what will be printed from element values
elemoutgm eog
 description what will be printed from element values for graphics
graphfmt gf
 format of grahics file - 0 - none, 1 - openDX, 2 - FemCAD, 3 - GiD
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
gfmatrixlcs
long ncut
 number of cuts exported from 3d mesh to GiD
long ndiag
 number of output diagrams
long nlcs
 number of local coordinate systems
nodeoutm no
 description what will be printed from nodal values
nodeoutgm nog
 description what will be printed from nodal values for graphics
outdiagmodiag
 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 grfmt_gid_sep format
pointoutm 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 390 of file outdriverm.h.


Constructor & Destructor Documentation

outdriverm (  ) 

constructor

Constructor initializes data members to zero values.

Created by Tomas Koudelka

Definition at line 33 of file outdriverm.cpp.

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

~outdriverm (  ) 

destructor

Destructor deallocates used memory.

Created by Tomas Koudelka

Definition at line 59 of file outdriverm.cpp.

References lcs, odiag, and outdiagf.


Member Function Documentation

void conv_sel_prop ( siftop *  top  ) 

converts selections given by property id to list or range type

Converts selections given by property id to list or range type in all output collections according nodal and element properties defined in the topology top.

Parameters:
top - mesh topology with defined properties of nodes and elements
Returns:
The function does not return anything but it changes internal representation selections of all nodes and elements that were givne by property id.

Created by Tomas Koudelka, 9.1.2015

Definition at line 952 of file outdriverm.cpp.

References elemoutgm::conv_sel_prop(), nodeoutgm::conv_sel_prop(), elemoutm::conv_sel_prop(), nodeoutm::conv_sel_prop(), eo, eog, no, and nog.

Referenced by main().

void create_files_gidsp ( const char *  mode  ) 

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

Function creates output graphics files and their headers for GiD separated format (grfmt_gidsp). For this format (grfmt_gidsp) each required quantity is printed to the sparated file named in following way: filename.{elem|nodal}_{quanitity}{indexOfQuantity}.res quatnitity can be: eps, sig, pesp, psig, other. indexOfQuantity can be:

  1. index number for scalars
  2. _v{firstIndex}-{numCompVec}_s{selId} for vectors, where
    • firstIndex is the index of the first vector component in the given array (eps, sig, other)
    • numCompVec is the number of vector component
    • selId is the index of selection for nodes/elements which the selected vector belongs to
  3. _m[{firstIndex}-{numCompMtx}]_s{selId} for tensors/matrices, where
    • firstIndex is the index of the first tensor/matrix component in the other array
    • numCompMtx is the number of tensor/matrix component in the other array
    • selId is the index of selection for nodes/elements which the selected tensor/matrix belongs to
Parameters:
mode - opening mode for opened text files
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 824 of file outdriverm.cpp.

References elemoutgm::dstep, nodeoutgm::dstep, eog, gf, grfmt_gid_sep, ide1, nog, outgrfngs, print_err(), elemoutgm::print_graphics(), nodeoutgm::print_graphics(), sel_no, and sel::st.

Referenced by print_init().

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
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 276 of file outdriverm.cpp.

References earth_pressure, eigen_dynamics, eo, eog, forced_dynamics, gf, grfmt_no, growing_mech_structure, lin_floating_subdomain, mat_nonlinear_statics, mech_timedependent_prob, Mp, ndiag, no, nog, nonlin_floating_subdomain, odiag, on, outdiagfn, outfn, outgrfn, po, elemoutgm::print(), nodeoutgm::print(), pointoutm::print(), elemoutm::print(), nodeoutm::print(), textout, and probdesc::tprob.

Referenced by main().

void print_default_vtk ( FILE *  fname,
long  lcid,
long  istep,
double  lambda 
)

prints header, points and used elements to the VTK file

The function prints header, points and used elements to the VTK file

Parameters:
fname - pointer to the opened VTK file
lcid - load case id
istep - integration step
lambda - actual time in either s,h,days
Returns:
The function does not return anything.

Created by Vit Smilauer

Definition at line 5290 of file outdriverm.cpp.

References axisymmlq, axisymmlt, axisymmqq, bar2d, bar3d, barq2d, barq3d, beam2d, beam3d, mechtop::elements, gtopology::gelements, mechtop::give_nne(), gtopology::gnodes, Gtm, linearhex, lineartet, Mt, mechtop::ne, mechtop::nn, gelement::nodes, planeelementlq, planeelementlt, planeelementqq, print_err(), quadrhex, element::te, gnode::x, gnode::y, and gnode::z.

Referenced by print_graphics().

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
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 461 of file outdriverm.cpp.

References ndiag, odiag, and outdiagf.

Referenced by print_step().

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

forced print of diagrams

Function prints diagrams without respect to to selected step/time (forced printing).

Parameters:
lcid - required load case id
lambda - actual load parameter/actual time
istep - actual step id
fi - array with values of load vector
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 483 of file outdriverm.cpp.

References ndiag, odiag, and outdiagf.

Referenced by print_step_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
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 505 of file outdriverm.cpp.

References days, elemoutgm::dstep, nodeoutgm::dstep, eigen_dynamics, eog, filename_decomposition(), FNAMELEN, forced_dynamics, gf, grfmt_femcad, grfmt_gid, grfmt_gid_sep, grfmt_no, grfmt_open_dx, grfmt_vtk, growing_mech_structure, Gtm, hours, ide1, Mb, mech_timedependent_prob, minutes, Mm, Mp, Mt, mechbclc::nlc, nog, outgrfn, outgrfngs, sel::presence_id(), print_default_dx(), print_default_vtk(), print_err(), elemoutgm::print_graphics(), nodeoutgm::print_graphics(), seconds, elemoutgm::sellc, nodeoutgm::sellc, probdesc::timecon, probdesc::tpr, probdesc::tprob, vtk_num, and write_vtk_unkn().

Referenced by print_step().

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

forced print of graphics

Function prints required value to the graphics files without respect to to selected step/time (forced printing).

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
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 683 of file outdriverm.cpp.

References days, eog, gf, grfmt_femcad, grfmt_gid, grfmt_gid_sep, grfmt_no, grfmt_open_dx, growing_mech_structure, Gtm, hours, ide1, Mb, mech_timedependent_prob, minutes, Mm, Mp, Mt, mechbclc::nlc, nog, outgrfn, outgrfngs, sel::presence_id(), print_default_dx(), print_err(), elemoutgm::print_graphics(), nodeoutgm::print_graphics(), seconds, elemoutgm::sellc, nodeoutgm::sellc, probdesc::tpr, and probdesc::tprob.

Referenced by print_step_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
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 328 of file outdriverm.cpp.

References Mp, and probdesc::name.

Referenced by print_init().

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
istep - integer step id
time - time or load step
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 361 of file outdriverm.cpp.

References days, pointoutm::dstep, elemoutm::dstep, nodeoutm::dstep, eo, hours, minutes, Mp, no, po, sel::presence_id(), seconds, pointoutm::sellc, elemoutm::sellc, nodeoutm::sellc, textout, probdesc::timecon, and probdesc::tpr.

Referenced by print_step(), and print_step_forced().

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

prints 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
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 403 of file outdriverm.cpp.

References pointoutm::dstep, elemoutm::dstep, nodeoutm::dstep, eo, Mp, no, po, sel::presence_id(), pointoutm::print_out(), elemoutm::print_out(), nodeoutm::print_out(), pointoutm::sellc, elemoutm::sellc, nodeoutm::sellc, textout, and probdesc::timecon.

Referenced by print_step().

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

forced print of values to the text file

Function prints required output values to the output text file without respect to to selected step/time (forced printing).

Parameters:
out - pointer to the opened text file
lcid - load case id
istep - step id
Returns:
The function does not return anything.

Created by Tomas Koudelka

Definition at line 432 of file outdriverm.cpp.

References eo, no, po, sel::presence_id(), pointoutm::print_out(), elemoutm::print_out(), nodeoutm::print_out(), pointoutm::sellc, elemoutm::sellc, nodeoutm::sellc, and textout.

Referenced by print_step_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 format
6 - error reading nodal graphics output description
7 - error reading element graphics output description
8 - error reading output diagram description
9 - error reading local coordinate system section

Created by Tomas Koudelka

Definition at line 86 of file outdriverm.cpp.

References allocim(), elemoutgm::dstep, nodeoutgm::dstep, pointoutm::dstep, elemoutm::dstep, nodeoutm::dstep, earth_pressure, eigen_dynamics, eo, eog, flagsw_kwdset(), forced_dynamics, gf, graphfmt_kwdset(), grfmt_femcad, grfmt_gid, grfmt_gid_sep, grfmt_no, grfmt_open_dx, grfmt_vtk, growing_mech_structure, lcs, lin_floating_subdomain, gfmatrix::m, mat_nonlinear_statics, mech_timedependent_prob, memset(), Mp, gfmatrix::n, ndiag, nlcs, no, nog, nonlin_floating_subdomain, odiag, probdesc::otheraver, probdesc::othercomp, probdesc::otherpos, outdiagf, outdiagfn, outfn, outgrfn, po, print_err(), probdesc::reactcomp, elemoutgm::read(), nodeoutgm::read(), pointoutm::read(), elemoutm::read(), nodeoutm::read(), readm(), sel_no, sel::st, probdesc::strainaver, probdesc::straincomp, probdesc::strainpos, probdesc::stressaver, probdesc::stresscomp, probdesc::stresspos, testlcs(), textout, probdesc::tprob, and xfscanf().

Referenced by main(), mefel_init(), metr_init(), pmefel_init(), and pmetr_init().

long testlcs (  ) 

tests the output setting whether it requires some local coordinate system

The function tests whether the output setting requires transformation of quantities to the user defined local coordinate system.

Return values:
0 - no local coordinate system is required
1 - some local coordinate system is required

Created by Tomas Koudelka 27.11.2014

Definition at line 851 of file outdriverm.cpp.

References eo, eog, sel::n, no, nog, pointoutm::npnt, po, elemoutgm::selestra, elemoutm::selestra, elemoutgm::selestre, elemoutm::selestre, nodeoutgm::selnstra, nodeoutm::selnstra, nodeoutgm::selnstre, nodeoutm::selnstre, elemoutgm::transtra, nodeoutgm::transtra, pointoutm::transtra, elemoutm::transtra, nodeoutm::transtra, elemoutgm::transtre, nodeoutgm::transtre, pointoutm::transtre, elemoutm::transtre, and nodeoutm::transtre.

Referenced by read().

void write_vtk_unkn ( FILE *  fname,
long  lcid,
const char *  desclcid 
)

prints data to the VTK file

The function prints data to the VTK file.

Parameters:
fname - pointer to the opened VTK file
lcid - load case id
desclcid - load case description
Returns:
The function does not return anything.

Created by Vit Smilauer

Definition at line 5389 of file outdriverm.cpp.

References bar, fillm(), fillv(), Mt, node::ncompstr, mechtop::nn, noddispl(), mechtop::nodes, nog, planestrain, sel_no, nodeoutgm::selndisp, nodeoutgm::selnoth, nodeoutgm::selnstra, nodeoutgm::selnstre, spacestress, sel::st, strain, node::strain, stress, node::stress, and vector_tensor().

Referenced by print_graphics().


Member Data Documentation

description what will be printed from element values

Definition at line 451 of file outdriverm.h.

Referenced by conv_sel_prop(), aepoints::init(), print(), print_newstep(), print_out(), print_out_forced(), read(), and testlcs().

description what will be printed from element values for graphics

Definition at line 458 of file outdriverm.h.

Referenced by conv_sel_prop(), create_files_gidsp(), print(), print_graphics(), print_graphics_forced(), read(), testlcs(), write_gid_elem_type_scalar(), write_gid_elem_type_tensor(), and write_gid_elem_type_vector().

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

Definition at line 471 of file outdriverm.h.

Referenced by create_files_gidsp(), outdriverm(), pmefel_init(), pmetr_init(), print(), print_graphics(), print_graphics_forced(), print_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 477 of file outdriverm.h.

Referenced by create_files_gidsp(), outdriverm(), print_graphics(), print_graphics_forced(), print_init(), write_gid_elem_type_scalar(), write_gid_elem_type_tensor(), and write_gid_elem_type_vector().

long idn1

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

Definition at line 475 of file outdriverm.h.

Referenced by outdriverm(), print_init(), write_gid_displ(), write_gid_nforces(), write_gid_nodscalar(), write_gid_nodtensor(), and write_gid_nodvector().

array of transformation matrices of the individual local coordinate systems rows of the matrix contains base vectors of the given lcs in the global coordinate system {e'} = [T]*{e} = lcs[i]*{e}

Definition at line 468 of file outdriverm.h.

Referenced by outdriverm(), elemoutm::print_stra(), nodeoutm::print_stra(), elemoutm::print_stre(), nodeoutm::print_stre(), read(), write_gid_elem_type_scalar(), write_gid_elem_type_tensor(), write_gid_nodscalar(), write_gid_nodtensor(), and ~outdriverm().

long ncut

number of cuts exported from 3d mesh to GiD

Definition at line 473 of file outdriverm.h.

Referenced by outdriverm(), and print_init().

long ndiag

number of output diagrams

Definition at line 480 of file outdriverm.h.

Referenced by outdriverm(), pmefel_init(), pmetr_init(), print(), print_close(), print_diags(), print_diags_forced(), print_flush(), print_init(), and read().

long nlcs

description what will be printed from nodal values

Definition at line 449 of file outdriverm.h.

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

array with description of printed diagrams

Definition at line 482 of file outdriverm.h.

Referenced by stochdriver::diagpostproc(), outdriverm(), print(), print_diags(), print_diags_forced(), read(), and ~outdriverm().

FILE** outdiagf

output diagram files

Definition at line 444 of file outdriverm.h.

Referenced by outdriverm(), print_close(), print_diags(), print_diags_forced(), print_flush(), print_init(), read(), and ~outdriverm().

char outdiagfn[1001]

output diagrams filename

Definition at line 433 of file outdriverm.h.

Referenced by stochdriver::diagpostproc(), outdriverm(), pmefel_init(), pmetr_init(), print(), print_init(), and read().

FILE* outf

output text file

Definition at line 442 of file outdriverm.h.

Referenced by outdriverm(), print_close(), print_flush(), print_init(), print_step(), and print_step_forced().

char outfn[1001]
FILE* outgr

output graphics file

Definition at line 446 of file outdriverm.h.

Referenced by outdriverm(), print_close(), print_flush(), print_init(), print_step(), and print_step_forced().

char outgrfn[1001]

output graphics filename

Definition at line 435 of file outdriverm.h.

Referenced by outdriverm(), pmefel_init(), pmetr_init(), print(), print_graphics(), print_graphics_forced(), print_init(), and read().

char outgrfngs[1001+50]

generated output graphic file name for grfmt_gid_sep format

Definition at line 437 of file outdriverm.h.

Referenced by create_files_gidsp(), print_graphics(), print_graphics_forced(), and print_init().

description what will be printed for each user def. point

Definition at line 453 of file outdriverm.h.

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

text output flag

Definition at line 440 of file outdriverm.h.

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

long vtk_num

number of file sequence in VTK graphic output

Definition at line 485 of file outdriverm.h.

Referenced by outdriverm(), and print_graphics().


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

Generated by  doxygen 1.6.2