outdiagm Class Reference

#include <outdiagm.h>

List of all members.

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
nodipnif
 pid is node or ipp flag
long npun
 number of printed unknowns
long * pid
 point id
prunkpu
 array of type of printed unknowns
double x
 coordinates of selected point
double y
double z

Detailed Description

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.


Constructor & Destructor Documentation

outdiagm (  ) 

constructor

The constructor initializes data to zero values

Created by Tomas Koudelka,

Definition at line 21 of file outdiagm.cpp.

References eid, ipeid, ipu, nif, pid, and pu.

~outdiagm (  ) 

destructor

The destructor deallocates used memory

Created by Tomas Koudelka,

Definition at line 34 of file outdiagm.cpp.

References eid, ipeid, ipu, nif, pid, and pu.


Member Function Documentation

long print ( FILE *  out  ) 

prints data to the input file

The function prints data to the file given by the pointer out.

Parameters:
in - pointer to the opened text file where the data will be read from
Return values:
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.

Parameters:
out - pointer to opened output text file
lcid - load case id
idp - required component of displacement
Return values:
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.

Parameters:
out - pointer to opened output text file
idp - required component of force
Return values:
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

Parameters:
out - pointer to opened output text file
Return values:
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.

Parameters:
out - pointer to opened output text file
lcid - load case id
idp - required component of stress
Return values:
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.

Parameters:
out - pointer to opened output text file
lcid - load case id
idp - required component of other array
Return values:
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.

Parameters:
out - pointer to opened output text file
lcid - load case id
idp - required component of reaction
Return values:
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.

Parameters:
out - pointer to opened output text file
lcid - load case id
idp - required component of strain
Return values:
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.

Parameters:
out - pointer to opened output text file
lcid - load case id
idp - required component of stress
Return values:
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.

Parameters:
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
Return values:
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.

Parameters:
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
Return values:
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.

Parameters:
in - pointer to the opened text file where the data will be read from
Return values:
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.


Member Data Documentation

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
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

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.

Referenced by print(), and read().

double y

Definition at line 62 of file outdiagm.h.

Referenced by print(), and read().

double z

Definition at line 62 of file outdiagm.h.

Referenced by print(), and read().


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

Generated by  doxygen 1.6.2