#include "globprept.h"
#include "outputt.h"
#include "elementt.h"
#include <string.h>
Go to the source code of this file.
Functions | |
long | outputt (FILE *out, descript *d) |
main output function | |
long | wr_bocont (FILE *out) |
output of boundary conditions | |
long | wr_climatcond (FILE *out, long nlc) |
output of climatic conditions | |
long | wr_climatcond2 (FILE *out, long nlc) |
output of general climatic conditions | |
long | wr_crsecst (FILE *out, descript *d) |
output of cross-sections | |
long | wr_elementst (FILE *out, descript *d) |
output of elements | |
long | wr_globnodnumt (FILE *out) |
output of global node numbers for paralell computing | |
long | wr_initcondt (FILE *out) |
output initial conditions | |
long | wr_loadcaset (FILE *out) |
load controling function | |
long | wr_loadelt (FILE *out, long nlc) |
output of element load | |
long | wr_materialst (FILE *out, descript *d) |
output of materials | |
long | wr_nodest (FILE *out) |
output of nodes | |
long | wr_prescquant (FILE *out) |
output of prescribed quantities | |
long | wr_sources (FILE *out, long nlc) |
output of sources at nodes and elements |
long outputt | ( | FILE * | out, | |
descript * | 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 |
0 | - on success | |
7 | - in case of an error |
Created by Tomas Koudelka, 10.2010
Definition at line 20 of file outputt.cpp.
References list::at(), list::count(), Dbcrst, Dbmatt, El_cc_lst, El_ccf_lst, El_cst, El_cstdbi, El_csti, El_gcc_lst, El_gccf_lst, El_gtrcc_lst, El_loadt, El_loadtcol, El_loadtln, El_matdbi, El_matid, El_mattype, El_nmat, El_nv_lst, El_sourcet, El_srclst, El_tfunc, El_trc_lst, El_trcc_lst, El_trr_lst, El_type, Nod_bclst, Nod_bocon, Nod_ccn, Nod_cst, Nod_cstdbi, Nod_csti, Nod_inicd, Nod_sourcet, Nod_srclst, probdesct::ntm, descript::paral, dbcrst::renumber_id(), dbmatt::renumber_id(), Tft, Top, Tp, wr_bocont(), wr_crsecst(), wr_elementst(), wr_globnodnumt(), wr_initcondt(), wr_loadcaset(), wr_materialst(), and wr_nodest().
Referenced by main().
long wr_bocont | ( | FILE * | out | ) |
output of 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, 10.2010
Definition at line 283 of file outputt.cpp.
References growing_np_problem, growing_np_problem_nonlin, Nod_bocon, Nod_ccn, probdesct::ntm, print_err(), Top, Tp, and probdesct::tprob.
Referenced by outputt().
long wr_climatcond | ( | FILE * | out, | |
long | nlc | |||
) |
output of climatic conditions
The function writes data of climatic boundary conditions 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 | : if the mixed types of climatic conditions appeared | |
2 | : if no climatic condition has been found on some position in the lists |
Created by Tomas Koudelka, 09.2011
Definition at line 857 of file outputt.cpp.
References list::count(), El_cc_lst, El_ccf_lst, El_trcc_lst, no, climatcond::print(), and print_err().
Referenced by wr_loadcaset().
long wr_climatcond2 | ( | FILE * | out, | |
long | nlc | |||
) |
output of general climatic conditions
The function writes data of general climatic boundary conditions 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 | : if the mixed types of climatic conditions appeared | |
2 | : if no climatic condition has been found on some position in the lists |
Created by Tomas Koudelka, 07.2014
Definition at line 934 of file outputt.cpp.
References list::count(), El_gcc_lst, El_gccf_lst, El_gtrcc_lst, no, climatcond2::print(), and print_err().
Referenced by wr_loadcaset().
long wr_crsecst | ( | FILE * | out, | |
descript * | d | |||
) |
output of 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, 10.2010
Definition at line 516 of file outputt.cpp.
References dbcrst::crs, descript::crsstr, Dbcrst, csect::inst, csect::instu, dbcrst::ncrsu, csect::ninst, csect::ninstu, dbcrst::numt, transcrsec::printcrschar(), csect::ridx, Tc, csect::type, and yes.
Referenced by outputt().
long wr_elementst | ( | FILE * | out, | |
descript * | d | |||
) |
output of 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, 10.2010
Definition at line 382 of file outputt.cpp.
References dbcrst::crs, Dbcrst, Dbmatt, El_cst, El_cstdbi, El_csti, El_matdbi, El_matid, El_mattype, El_nmat, El_tfunc, El_type, growing_np_problem, growing_np_problem_nonlin, dbmatt::mat, print_err(), matrt::ridx, csect::ridx, Top, Tp, and probdesct::tprob.
Referenced by outputt().
long wr_globnodnumt | ( | FILE * | out | ) |
output of 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, 10.2010
Definition at line 449 of file outputt.cpp.
References Top.
Referenced by outputt().
long wr_initcondt | ( | FILE * | out | ) |
output initial conditions
Function writes section with description of initial conditions for nonstationary problems 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, 10.2010
Definition at line 1006 of file outputt.cpp.
References Nod_inicd, probdesct::ntm, Top, and Tp.
Referenced by outputt().
long wr_loadcaset | ( | 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 | : error in the printing of climatcond objects |
Created by TKo, 10.2010
Definition at line 563 of file outputt.cpp.
References discont_nonlin_nonstat_problem, discont_nonstat_problem, growing_np_problem, growing_np_problem_nonlin, hermes, nonlinear_nonstationary_problem, nonlinear_stationary_problem, nonstationary_problem, probdesct::ntm, print_err(), stationary_problem, Tp, probdesct::tprob, wr_climatcond(), wr_climatcond2(), wr_loadelt(), wr_prescquant(), and wr_sources().
Referenced by outputt().
long wr_loadelt | ( | FILE * | out, | |
long | nlc | |||
) |
output of 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, 10.2010
Definition at line 776 of file outputt.cpp.
References list::count(), El_loadt, El_nv_lst, El_trc_lst, El_trr_lst, bnodvalt::print(), loadelt::print(), loadelt::renumber_id(), and Top.
Referenced by wr_loadcaset().
long wr_materialst | ( | FILE * | out, | |
descript * | d | |||
) |
output of 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, 10.2010
Definition at line 469 of file outputt.cpp.
References Dbmatt, matrt::inst, matrt::instu, dbmatt::mat, descript::matstr, matrt::ninst, matrt::ninstu, dbmatt::nmatu, dbmatt::numt, transmat::printmatchar(), matrt::ridx, Tm, matrt::type, and yes.
Referenced by outputt().
long wr_nodest | ( | FILE * | out | ) |
output of 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, 10.2010
Definition at line 248 of file outputt.cpp.
References dbcrst::crs, Dbcrst, Nod_cst, Nod_cstdbi, Nod_csti, probdesct::ntm, csect::ridx, Top, and Tp.
Referenced by outputt().
long wr_prescquant | ( | FILE * | out | ) |
output of prescribed quantities
Function writes section with description of nodal prescribed quantities to the text file given by out.
out | - pointer to the opened text file, where the data will be written |
0 | : on succes | |
1 | : wrong number of prescribed displacements (error in code) |
Created by TKo, 10.2010
Definition at line 629 of file outputt.cpp.
References list::at(), list::count(), Nod_bclst, and bocont::print().
Referenced by wr_loadcaset().
long wr_sources | ( | FILE * | out, | |
long | nlc | |||
) |
output of sources at nodes and elements
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, 10.2010
Definition at line 661 of file outputt.cpp.
References list::at(), list::count(), El_sourcet, El_srclst, memset(), Nod_sourcet, Nod_srclst, sourcet::print(), and Top.
Referenced by wr_loadcaset().