#include <outdiagm.h>
Public Member Functions | |
outdiagm () | |
constructor | |
long | print (FILE *out) |
prints data to the input file | |
long | print_displacements (FILE *out, long lcid, long idp) |
prints displacements | |
long | print_forces (FILE *out, long idp, double *fi) |
prints forces | |
long | print_header (FILE *out) |
prints header to the output diagram file | |
long | print_macrostr (FILE *out, long lcid, long idp) |
prints macro-stress/strain | |
long | print_others (FILE *out, long lcid, long idp) |
prints others | |
long | print_reactions (FILE *out, long lcid, long idp) |
prints reactions | |
long | print_strains (FILE *out, long lcid, long idp) |
prints strains | |
long | print_stresses (FILE *out, long lcid, long idp) |
prints stresses | |
long | printval (FILE *out, long lcid, double lambda, long istep, double *fi) |
prints diagram to output diagram file | |
long | printval_forced (FILE *out, long lcid, double lambda, long istep, double *fi) |
forced print of diagram to output diagram file | |
long | read (XFILE *in) |
reads data from the input file | |
~outdiagm () | |
destructor | |
Public Attributes | |
sel | dstep |
selection of printed steps | |
long * | eid |
element id | |
long * | ipeid |
order of integration point on element | |
long * | ipu |
indeces of pu components | |
nodip * | nif |
pid is node or ipp flag | |
long | npun |
number of printed unknowns | |
long * | pid |
point id | |
prunk * | pu |
array of type of printed unknowns | |
double | x |
coordinates of selected point | |
double | y |
double | z |
The class manages output of diagrams to the text file. It is used for diagram output in the nonlinear or time dependent problems. Selected quantities are printed at each seleted time step.
Created by Tomas Koudelka,
Definition at line 19 of file outdiagm.h.
outdiagm | ( | ) |
~outdiagm | ( | ) |
long print | ( | FILE * | out | ) |
prints data to the input file
The function prints data to the file given by the pointer out.
in | - pointer to the opened text file where the data will be read from |
0 | - on success |
Created by Tomas Koudelka,
Definition at line 228 of file outdiagm.cpp.
References atip, atnode, atxyz, dstep, eid, ipeid, ipu, nif, npun, pid, pr_appload, pr_stepid, sel::print(), print_err(), pu, sel_no, sel::st, x, y, and z.
long print_displacements | ( | FILE * | out, | |
long | lcid, | |||
long | idp | |||
) |
prints displacements
The function prints displacement at required point to the output file out. It supposes that values in the nodes are actualized and valid.
out | - pointer to opened output text file | |
lcid | - load case id | |
idp | - required component of displacement |
0 | - on success | |
1 | - in case that value at integration point is required |
Created by Tomas Koudelka,
Definition at line 514 of file outdiagm.cpp.
References atip, atnode, atxyz, gtopology::gnodes, Gtm, ipu, gnode::ndofn, nif, noddispl(), pid, and print_err().
Referenced by printval(), and printval_forced().
long print_forces | ( | FILE * | out, | |
long | idp, | |||
double * | fi | |||
) |
prints forces
The function prints forces at required node to the output file out. Value from load vector fi is used and printed.
out | - pointer to opened output text file | |
idp | - required component of force |
0 | - on success | |
1 | - in case that point type is atip | |
2 | - in case that unknown component of force is required |
Created by Tomas Koudelka,
Definition at line 705 of file outdiagm.cpp.
References atip, atnode, atxyz, mechtop::give_dof(), ipu, Mt, nif, pid, and print_err().
Referenced by printval(), and printval_forced().
long print_header | ( | FILE * | out | ) |
prints header to the output diagram file
Function prints header for diagram file
out | - pointer to opened output text file |
0 | - on success | |
1 | - in case of unknown required value type |
Created by Tomas Koudelka,
Definition at line 279 of file outdiagm.cpp.
References ipu, npun, pid, pr_appload, pr_displ, pr_forces, pr_other, pr_react, pr_stepid, pr_strains, pr_stresses, pr_time, print_err(), and pu.
long print_macrostr | ( | FILE * | out, | |
long | lcid, | |||
long | idp | |||
) |
prints macro-stress/strain
The function prints macro-stress/strain components at required point to the output file out. It supposes that values in the integration points and nodes are actualized and valid.
out | - pointer to opened output text file | |
lcid | - load case id | |
idp | - required component of stress |
0 | - on success | |
1 | - in case that unknown type of point is required | |
2 | - in case that unknown component of strain is required | |
3 | - in case that macro-stress/strain components are not defined in the problem |
Created by Tomas Koudelka, 9.1.2015
Definition at line 646 of file outdiagm.cpp.
References atip, atnode, atxyz, lhsrhs::give_lhs(), mechtop::give_ncomp(), probdesc::homog, ipu, Lsrs, Mp, Mt, Ndofm, nif, pid, and print_err().
Referenced by printval().
long print_others | ( | FILE * | out, | |
long | lcid, | |||
long | idp | |||
) |
prints others
The function prints other value at required point to the output file out. It supposes that values in the integration points and nodes are actualized and valid.
out | - pointer to opened output text file | |
lcid | - load case id | |
idp | - required component of other array |
0 | - on success | |
1 | - in case that unknown type of point is required | |
2 | - in case that unknown component of strain is required |
Created by Tomas Koudelka,
Definition at line 784 of file outdiagm.cpp.
References atip, atnode, atxyz, intpoints::eqother, mechmat::ip, ipu, Mm, Mt, intpoints::ncompeqother, node::ncompother, nif, mechtop::nodes, node::other, pid, and print_err().
Referenced by printval(), and printval_forced().
long print_reactions | ( | FILE * | out, | |
long | lcid, | |||
long | idp | |||
) |
prints reactions
The function prints reaction at required node to the output file out. It supposes that values in the nodes are actualized and valid.
out | - pointer to opened output text file | |
lcid | - load case id | |
idp | - required component of reaction |
0 | - on success | |
1 | - in case that unknown type of point is required |
Created by Tomas Koudelka,
Definition at line 748 of file outdiagm.cpp.
References atip, atnode, atxyz, ipu, Mt, nif, mechtop::nodes, pid, print_err(), node::r, and node::react.
Referenced by printval(), and printval_forced().
long print_strains | ( | FILE * | out, | |
long | lcid, | |||
long | idp | |||
) |
prints strains
The function prints strain at required point to the output file out. It supposes that values in the integration points and nodes are actualized and valid.
out | - pointer to opened output text file | |
lcid | - load case id | |
idp | - required component of strain |
0 | - on success | |
1 | - in case that unknown type of point is required | |
2 | - in case that unknown component of strain is required |
Created by Tomas Koudelka,
Definition at line 553 of file outdiagm.cpp.
References atip, atnode, atxyz, mechmat::ip, ipu, Mm, Mt, intpoints::ncompstr, node::ncompstr, nif, mechtop::nodes, pid, print_err(), intpoints::strain, and node::strain.
Referenced by printval(), and printval_forced().
long print_stresses | ( | FILE * | out, | |
long | lcid, | |||
long | idp | |||
) |
prints stresses
The function prints stress at required point to the output file out. It supposes that values in the integration points and nodes are actualized and valid.
out | - pointer to opened output text file | |
lcid | - load case id | |
idp | - required component of stress |
0 | - on success | |
1 | - in case that unknown type of point is required | |
2 | - in case that unknown component of strain is required |
Created by Tomas Koudelka,
Definition at line 599 of file outdiagm.cpp.
References atip, atnode, atxyz, mechmat::ip, ipu, Mm, Mt, intpoints::ncompstr, node::ncompstr, nif, mechtop::nodes, pid, print_err(), intpoints::stress, and node::stress.
Referenced by printval(), and printval_forced().
long printval | ( | FILE * | out, | |
long | lcid, | |||
double | lambda, | |||
long | istep, | |||
double * | fi | |||
) |
prints diagram to output diagram file
The function prints one row with required values to the output file out. It supposes that values in the integration points and nodes are actualized and valid.
out | - pointer to opened output text file | |
lcid | - load case id | |
lambda | - coefficient of applied load | |
istep | - index of current step | |
fi | - pointer to array load vector |
0 | - on success | |
1 | - in case of wrong ip identification | |
2 | - in case of unknown required value type |
Created by Tomas Koudelka,
Definition at line 341 of file outdiagm.cpp.
References atip, days, dstep, eid, mechtop::elements, mechtop::give_tnip(), hours, ipeid, element::ipp, minutes, Mp, Mt, mechtop::ne, nif, npun, pid, pr_appload, pr_displ, pr_eigval, pr_forces, pr_macrostr, pr_other, pr_react, pr_stepid, pr_strains, pr_stresses, pr_time, sel::presence_id(), print_displacements(), print_err(), print_forces(), print_macrostr(), print_others(), print_reactions(), print_strains(), print_stresses(), pu, seconds, probdesc::timecon, and probdesc::tpr.
long printval_forced | ( | FILE * | out, | |
long | lcid, | |||
double | lambda, | |||
long | istep, | |||
double * | fi | |||
) |
forced print of diagram to output diagram file
The function prints one row with required values to the output file out without respect to to selected step/time (forced printing). It supposes that values in the integration points and nodes are actualized and valid.
out | - pointer to opened output text file | |
lcid | - load case id | |
lambda | - coefficient of applied load | |
istep | - index of current step | |
fi | - pointer to array load vector |
0 | - on success | |
1 | - in case of wrong ip identification | |
2 | - in case of unknown required value type |
Created by Tomas Koudelka,
Definition at line 433 of file outdiagm.cpp.
References atip, days, eid, mechtop::elements, mechtop::give_tnip(), hours, ipeid, element::ipp, minutes, Mp, Mt, mechtop::ne, nif, npun, pid, pr_appload, pr_displ, pr_eigval, pr_forces, pr_other, pr_react, pr_stepid, pr_strains, pr_stresses, pr_time, print_displacements(), print_err(), print_forces(), print_others(), print_reactions(), print_strains(), print_stresses(), pu, seconds, and probdesc::tpr.
long read | ( | XFILE * | in | ) |
reads data from the input file
The function reads data from the file given by the pointer to the opened text file.
in | - pointer to the opened text file where the data will be read from |
0 | - on success | |
1 | - in case read error |
Created by Tomas Koudelka,
Definition at line 57 of file outdiagm.cpp.
References adjacnode(), atip, atnode, atxyz, dstep, eid, Gtm, ipeid, ipu, memset(), Mp, nif, nodip_kwdset(), npun, probdesc::otheraver, probdesc::othercomp, probdesc::otherpos, pid, pr_appload, pr_other, pr_react, pr_stepid, pr_strains, pr_stresses, pr_time, print_err(), prunk_kwdset(), pu, probdesc::reactcomp, sel::read(), sel_no, sel::st, probdesc::strainaver, probdesc::straincomp, probdesc::strainpos, probdesc::stressaver, probdesc::stresscomp, probdesc::stresspos, x, xfscanf(), y, and z.
selection of printed steps
Definition at line 54 of file outdiagm.h.
Referenced by print(), printval(), and read().
long* eid |
element id
Definition at line 60 of file outdiagm.h.
Referenced by outdiagm(), print(), printval(), printval_forced(), read(), and ~outdiagm().
long* ipeid |
order of integration point on element
Definition at line 64 of file outdiagm.h.
Referenced by outdiagm(), print(), printval(), printval_forced(), read(), and ~outdiagm().
long* ipu |
indeces of pu components
Definition at line 68 of file outdiagm.h.
Referenced by outdiagm(), print(), print_displacements(), print_forces(), print_header(), print_macrostr(), print_others(), print_reactions(), print_strains(), print_stresses(), read(), and ~outdiagm().
pid is node or ipp flag
Definition at line 56 of file outdiagm.h.
Referenced by outdiagm(), print(), print_displacements(), print_forces(), print_macrostr(), print_others(), print_reactions(), print_strains(), print_stresses(), printval(), printval_forced(), read(), and ~outdiagm().
long npun |
number of printed unknowns
Definition at line 52 of file outdiagm.h.
Referenced by stochdriver::diagpostproc(), print(), print_header(), printval(), printval_forced(), and read().
long* pid |
point id
Definition at line 58 of file outdiagm.h.
Referenced by outdiagm(), print(), print_displacements(), print_forces(), print_header(), print_macrostr(), print_others(), print_reactions(), print_strains(), print_stresses(), printval(), printval_forced(), read(), and ~outdiagm().
array of type of printed unknowns
Definition at line 66 of file outdiagm.h.
Referenced by outdiagm(), print(), print_header(), printval(), printval_forced(), read(), and ~outdiagm().
double x |
coordinates of selected point
Definition at line 62 of file outdiagm.h.
double y |
Definition at line 62 of file outdiagm.h.
double z |
Definition at line 62 of file outdiagm.h.