#include <stdio.h>
#include "descrip.h"
Go to the source code of this file.
Functions | |
long | get_ndpd (long nlc) |
returns the total number of prescribed displacements at nodes for time dependent load cases | |
long | get_nspd (long nlc) |
returns the total number of prescribed displacements at nodes for time independent load cases | |
long | get_nspring () |
returns the total number of spring supports at nodes | |
long | output (FILE *out, descrip *d) |
main output function | |
long | wr_auxpoint (FILE *out) |
output auxiliary point section | |
long | wr_bocon (FILE *out) |
output boundary conditions | |
long | wr_crsecs (FILE *out, descrip *d) |
output cross-sections | |
long | wr_dloadel (FILE *out, long nlc) |
output element dynamical load | |
long | wr_dloadn (FILE *out, long nlc) |
output nodal dynamical load | |
long | wr_dprescdisp (FILE *out, long nlc) |
output dynamical prescribed displacements | |
long | wr_eigenstrains (FILE *out) |
output of element eigenstrains | |
long | wr_elements (FILE *out, descrip *d) |
output elements | |
long | wr_ellcsys (FILE *out) |
output section with local coordinate systems on the elements | |
long | wr_globnodnum (FILE *out, descrip *d) |
output global node numbers for paralell computing | |
long | wr_initcond (FILE *out, long nlc) |
output initial conditions | |
long | wr_intpoints (FILE *out, long nprop) |
output integration point section (already not used) | |
long | wr_lay_elements (FILE *out, descrip *d) |
output elements for layered problems | |
long | wr_lay_nodes (FILE *out) |
output nodes for layered problems | |
long | wr_load (FILE *out) |
load controling function | |
long | wr_loadel (FILE *out, long nlc) |
output element load | |
long | wr_loadn (FILE *out, long nlc) |
output nodal load | |
long | wr_macrostrastre (FILE *out, long nlc) |
output of macro strain/stress components for homogenization problems | |
long | wr_materials (FILE *out, descrip *d) |
output materials | |
long | wr_nodes (FILE *out) |
output nodes | |
long | wr_prescdisp (FILE *out, long nlc) |
output prescribed displacements | |
long | wr_tempload (FILE *out, long nlc) |
output temperature load |
long get_ndpd | ( | long | nlc | ) |
returns the total number of prescribed displacements at nodes for time dependent load cases
The function computes number of prescribed nodal values for the given time dependent load case nlc.
nlc | - loading case number which will be searched for prescribed values |
Created by Tomas Koudelka, 5.2014
Definition at line 1554 of file output.cpp.
long get_nspd | ( | long | nlc | ) |
returns the total number of prescribed displacements at nodes for time independent load cases
The function computes number of prescribed nodal values for the given load case nlc.
nlc | - loading case number which will be searched for prescribed values |
Created by Tomas Koudelka, 5.2014
Definition at line 1514 of file output.cpp.
long get_nspring | ( | ) |
returns the total number of spring supports at nodes
The function computes number of assigned spring supports at all nodes.
Created by Tomas Koudelka, 2010
Definition at line 1484 of file output.cpp.
References Nod_ndof, Nod_nsprmat, and Top.
Referenced by wr_elements().
long output | ( | FILE * | out, | |
descrip * | d | |||
) |
main output function
This function writes read data from the preprocessor files to the file given by the out parameter in the MEFEL input format.
out | - pointer to the opened text file where the data will be written | |
d | - pointer to the description structure with preprocessor data |
Created by Tomas Koudelka 2009
Definition at line 17 of file output.cpp.
References list::at(), list::count(), Dbcrs, Dbmat, El_cst, El_cstdbi, El_csti, El_eigstr, El_eigstrgf_lst, El_lcs, El_load, El_loadcol, El_loadln, El_matdbi, El_matid, El_mattype, El_nmat, El_ssst, El_tfunc, El_type, Mstrc, Nlay, Nlc, Nod_bocon, Nod_ccn, Nod_cst, Nod_cstdbi, Nod_csti, Nod_hang, Nod_inicd, Nod_lcs, Nod_load, Nod_ndof, Nod_nsprmat, Nod_sprmatdbi, Nod_sprmatid, Nod_sprmattype, Nod_tdload, Nod_temper, Npd, Nslc, Nslc_cum, descrip::paral, dbcrs::renumber_id(), dbmat::renumber_id(), Spd, Tf, Tlt, Tnslc, Top, wr_bocon(), wr_crsecs(), wr_eigenstrains(), wr_elements(), wr_globnodnum(), wr_lay_elements(), wr_lay_nodes(), wr_load(), wr_materials(), and wr_nodes().
Referenced by main().
long wr_auxpoint | ( | FILE * | out | ) |
output auxiliary point section
long wr_bocon | ( | FILE * | out | ) |
output boundary conditions
Function writes section with description of boundary conditions of nodes to the text file given by out.
out | - pointer to the opened text file, where the data will be written |
0 | - on succes | |
1 | - node has assigned boundary condition and coupled dof at the same direction |
Created by Tomas Koudelka 2009
Definition at line 375 of file output.cpp.
References growing_mech_structure, Mp, Ndpd, Nlay, Nlc, Nod_bocon, Nod_ccn, Nod_ndof, Nspd, print_err(), Tnslc, Top, and probdesc::tprob.
Referenced by output().
long wr_crsecs | ( | FILE * | out, | |
descrip * | d | |||
) |
output cross-sections
Function writes cross-sections and thier parameters to the file given by the out.
out | - pointer to the opened text file, where the data will be written | |
d | - pointer to the description structure with preprocessor data |
0 | : on succes |
Created by Tomas Koudelka
Definition at line 799 of file output.cpp.
References dbcrs::crs, descrip::crsstr, Dbcrs, csec::inst, csec::instu, Mc, dbcrs::ncrsu, csec::ninst, csec::ninstu, dbcrs::numt, mechcrsec::printcrschar(), csec::ridx, csec::type, and yes.
Referenced by output().
long wr_dloadel | ( | FILE * | out, | |
long | nlc | |||
) |
long wr_dloadn | ( | FILE * | out, | |
long | nlc | |||
) |
output nodal dynamical load
Function writes section with description of dynamic nodal load to the text file given by out
out | - pointer to the opened text file, where the data will be written | |
nlc | - number of loading case which will be written |
0 | : on succes |
Created by Tomas Koudelka
Definition at line 1054 of file output.cpp.
References forced_dynamics, growing_mech_structure, mech_timedependent_prob, Mp, Nlay, Nod_ndof, Nod_tdload, gfunct::print(), Top, and probdesc::tprob.
Referenced by wr_load().
long wr_dprescdisp | ( | FILE * | out, | |
long | nlc | |||
) |
output dynamical prescribed displacements
Function writes section with description of dynamic nodal prescribed displacement load to the text file given by out.
out | - pointer to the opened text file, where the data will be written | |
nlc | - number of loading case which will be written |
Returns:
0 | : on succes |
Created by Tomas Koudelka
Definition at line 1248 of file output.cpp.
References Ndpd, Nod_bocon, Nod_ndof, print_err(), and Top.
Referenced by wr_load().
long wr_eigenstrains | ( | FILE * | out | ) |
output of element eigenstrains
Function writes section with eigenstrains on element to the text file given by out.
out | - pointer to the opened text file, where the data will be written |
0 | : on succes |
Created by Tomas Koudelka 11.2012
Definition at line 1424 of file output.cpp.
References list::at(), list::count(), El_eigstr, El_eigstrgf_lst, mechtop::give_tncomp(), Mt, gfunct::print(), and Top.
Referenced by output().
long wr_elements | ( | FILE * | out, | |
descrip * | d | |||
) |
output elements
Function writes section with description of elements to the text file given by out.
out | - pointer to the opened text file, where the data will be written | |
d | - pointer to the description structure with preprocessor data |
0 | : on succes | |
1 | : if element has not assigned a cross-section | |
2 | : if element has not assigned a time function |
Created by Tomas Koudelka 2009
Definition at line 508 of file output.cpp.
References bar2d, bar3d, barq2d, barq3d, beam2d, beam2dsp, beam3d, beamg3d, dbcrs::crs, Dbcrs, Dbmat, El_cst, El_cstdbi, El_csti, El_matdbi, El_matid, El_mattype, El_nmat, El_ssst, El_tfunc, El_type, get_nspring(), growing_mech_structure, dbmat::mat, Mp, Nod_ndof, Nod_nsprmat, Nod_sprmatdbi, Nod_sprmatid, Nod_sprmattype, planeelementlt, planeelementsubqt, print_err(), matr::ridx, csec::ridx, spring_1, subsoilbeam, Top, and probdesc::tprob.
Referenced by output().
long wr_ellcsys | ( | FILE * | out | ) |
output section with local coordinate systems on the elements
long wr_globnodnum | ( | FILE * | out, | |
descrip * | d | |||
) |
output global node numbers for paralell computing
Function writes section with description of elements to the text file given by out.
out | - pointer to the opened text file, where the data will be written |
0 | : on succes |
Created by Tomas Koudelka 2009
Definition at line 722 of file output.cpp.
References descrip::paral, and Top.
Referenced by output().
long wr_initcond | ( | FILE * | out, | |
long | nlc | |||
) |
output initial conditions
Function writes section with description of dynamic nodal prescribed displacement load to the text file given by out.
out | - pointer to the opened text file, where the data will be written | |
nlc | - number of loading case which will be written |
0 | : on succes |
Created by Tomas Koudelka
Definition at line 1378 of file output.cpp.
References forced_dynamics, inidisp, Mp, Nod_inicd, Nod_ndof, inicd::print(), Top, probdesc::tprob, and type.
Referenced by wr_load().
long wr_intpoints | ( | FILE * | out, | |
long | nprop | |||
) |
output integration point section (already not used)
long wr_lay_elements | ( | FILE * | out, | |
descrip * | d | |||
) |
output elements for layered problems
Function writes section with description of elements for layered problems to the text file given by out.
out | - pointer to the opened text file, where the data will be written | |
d | - pointer to the description structure with preprocessor data |
0 | : on succes | |
1 | : if element hasn't assigned type |
Created by Tomas Koudelka 2009
Definition at line 627 of file output.cpp.
References bar2d, bar3d, barq2d, barq3d, beam2d, beam2dsp, beam3d, beamg3d, dbcrs::crs, Dbcrs, Dbmat, El_cst, El_cstdbi, El_csti, El_matdbi, El_matid, El_mattype, El_nmat, El_ssst, El_tfunc, El_type, growing_mech_structure, dbmat::mat, Mp, Nlay, planeelementlt, planeelementsubqt, print_err(), matr::ridx, csec::ridx, subsoilbeam, Top, and probdesc::tprob.
Referenced by output().
long wr_lay_nodes | ( | FILE * | out | ) |
output nodes for layered problems
Function writes section with description of nodes for layered problems to the text file given by out.
out | - pointer to the opened text file, where the data will be written |
Returns:
0 | - on succes |
Created by Tomas Koudelka 2009
Definition at line 325 of file output.cpp.
References dbcrs::crs, Dbcrs, vector::n, Nlay, Nod_cst, Nod_cstdbi, Nod_csti, Nod_lcs, Nod_ndof, csec::ridx, and Top.
Referenced by output().
long wr_load | ( | FILE * | out | ) |
load controling function
Function writes section with description of load to the text file given by out
out | - pointer to the opened text file, where the data will be written |
0 | : on success | |
1 | : unknown type of problem is required |
Created by Tomas Koudelka
Definition at line 846 of file output.cpp.
References eigen_dynamics, forced_dynamics, growing_mech_structure, probdesc::homog, layered_linear_statics, lin_floating_subdomain, linear_statics, mat_nonlinear_statics, mech_timedependent_prob, Mp, Nlc, Nslc, Nslc_cum, gfunct::print(), print_err(), Tdload, Tf, Tnslc, probdesc::tprob, wr_dloadel(), wr_dloadn(), wr_dprescdisp(), wr_initcond(), wr_loadel(), wr_loadn(), wr_macrostrastre(), wr_prescdisp(), and wr_tempload().
Referenced by output().
long wr_loadel | ( | FILE * | out, | |
long | nlc | |||
) |
output element load
Function writes section with description of element load to the text file given by out
out | - pointer to the opened text file, where the data will be written | |
nlc | - number of loading case which will be written |
0 | : on succes |
Created by Tomas Koudelka
Definition at line 1112 of file output.cpp.
References El_load, Nlay, loadel::print(), and Top.
Referenced by wr_load().
long wr_loadn | ( | FILE * | out, | |
long | nlc | |||
) |
output nodal load
Function writes section with description of nodal load to the text file given by out
out | - pointer to the opened text file, where the data will be written | |
nlc | - number of loading case which will be written |
0 | : on succes |
Created by Tomas Koudelka
Definition at line 1003 of file output.cpp.
References Nlay, Nod_load, Nod_ndof, and Top.
Referenced by wr_load().
long wr_macrostrastre | ( | FILE * | out, | |
long | nlc | |||
) |
output of macro strain/stress components for homogenization problems
Function writes section with prescribed macro strains/stresses
out | - pointer to the opened text file, where the data will be written | |
nlc | - number of loading case which will be written |
0 | : on success |
Created by Tomas Koudelka, 18.2.2014
Definition at line 1342 of file output.cpp.
References probdesc::homog, Mp, Mstrc, and Nmstrc.
Referenced by wr_load().
long wr_materials | ( | FILE * | out, | |
descrip * | d | |||
) |
output materials
Function writes materials and thier parameters to the file given by the out.
out | - pointer to the opened text file, where the data will be written | |
d | - pointer to the description structure with preprocessor data |
0 | : on succes |
Created by Tomas Koudelka
Definition at line 752 of file output.cpp.
References Dbmat, matr::inst, matr::instu, dbmat::mat, descrip::matstr, Mm, matr::ninst, matr::ninstu, dbmat::nmatu, dbmat::numt, mechmat::printmatchar(), matr::ridx, matr::type, and yes.
Referenced by output().
long wr_nodes | ( | FILE * | out | ) |
output nodes
Function writes section with description of nodes to the text file given by out.
out | - pointer to the opened text file, where the data will be written | |
nprop | - number of entries in the input property file |
0 | - if succes | |
1 | - if node hasn't assigned ndof | |
2 | - if node hasn't assigned cross-section |
Created by Tomas Koudelka 2009
Definition at line 271 of file output.cpp.
References dbcrs::crs, Dbcrs, vector::n, Nod_cst, Nod_cstdbi, Nod_csti, Nod_hang, Nod_lcs, Nod_ndof, Numhn, hangnode::print(), csec::ridx, and Top.
Referenced by output().
long wr_prescdisp | ( | FILE * | out, | |
long | nlc | |||
) |
output prescribed displacements
Function writes section with description of nodal prescribed displacement load to the text file given by out.
out | - pointer to the opened text file, where the data will be written | |
nlc | - number of loading case which will be written |
0 | : on succes | |
1 | : wrong number of prescribed displacements (error in code) |
Created by Tomas Koudelka
Definition at line 1187 of file output.cpp.
References growing_mech_structure, Mp, Nod_bocon, Nod_ndof, Npd, Nspd, print_err(), Spd, Top, and probdesc::tprob.
Referenced by wr_load().
long wr_tempload | ( | FILE * | out, | |
long | nlc | |||
) |
output temperature load
Function writes temperature load(temperature changes) at nodes.
out | - pointer to the opened text file, where the data will be written | |
nlc | - number of loading case which will be written |
Returns:
0 | - on success | |
1 | - incompatible tempreature load type and assigned temperature load |
Created by Tomas Koudelka
Definition at line 1299 of file output.cpp.
References Nod_temper, Tlt, and Top.
Referenced by wr_load().