#include <loadcase.h>
Public Member Functions | |
void | assemble (long lcid, double *rhs, double *flv, double scale) |
void | compute_reactions (long lcid) |
loadcase (void) | |
void | print (FILE *out) |
void | read (XFILE *in) |
void | tempercontrib (long lcid, double *rhs, double scale) |
~loadcase (void) | |
Public Attributes | |
loadel * | loe |
loadn * | lon |
double * | mstrain |
double * | mstress |
long | nle |
number of loaded elements | |
long | nln |
number of loaded nodes | |
long | npd |
number of prescribed displacements | |
long | npt |
number of prescribed temperature changes | |
long | ntemp_file |
number of multiple data files | |
double * | pd |
double * | pt |
double ** | pts |
char * | temp_file |
data file for reading | |
double * | temp_time |
long | tempchang |
presence of temperature changes |
Class loadcase defines load cases in static problems.
Created by JK,
Definition at line 16 of file loadcase.h.
loadcase | ( | void | ) |
~loadcase | ( | void | ) |
void assemble | ( | long | lcid, | |
double * | rhs, | |||
double * | flv, | |||
double | scale | |||
) |
Function assembles vector of right hand side. It is created by prescribed displacements, forces, moments, eigenstrains, etc. In case that the flv is not NULL, vector of load caused by forces only is stored in flv.
lcid | - load case id | |
rhs | - pointer to the right hand side | |
flv | - array of load vector caused by forces only (default value is NULL) | |
scale | - scale factor, it is used for subload cases |
Created by JK, 24.7.2001 Modifed by Tomas Koudelka, 7.2008
Definition at line 309 of file loadcase.cpp.
References vector::a, ivector::a, cmulv(), mechmat::computenlstresses(), copyv(), mechtop::domvol, loadel::eid, mechtop::elements, elprdispl(), loadn::f, f, mechtop::give_code_numbers(), mechtop::give_dof(), gtopology::give_ndofe(), mechtop::give_ndofe(), mechtop::give_ndofn(), mechtop::give_tncomp(), growing_mech_structure, Gtm, probdesc::homog, internal_forces(), mechmat::ip, gtopology::leso, locglob(), loe, lon, Mm, Mp, mstrain, mstress, Mt, mtxv(), mxv(), Ndofm, mechtop::ne, loadel::nf, nle, nln, npd, element::prescdispl, print_err(), reallocm(), reallocv(), stiffmat(), intpoints::strain, tempercontrib(), element::tmat, mechmat::tnip, and probdesc::tprob.
Referenced by dloadcase::assemble(), difference_method(), general_epressure(), general_epressure_varsup(), mefel_right_hand_side(), newmark_method(), nonlin_newmark_method(), par_solve_layered_linear_statics(), par_solve_linear_statics(), solve_epressure(), and solve_layered_linear_statics().
void compute_reactions | ( | long | lcid | ) |
Function computes reactions.
lcid | - load case id |
Created by JK,
Definition at line 581 of file loadcase.cpp.
References copyv(), loadel::eid, elem_internal_forces(), mechtop::elements, f, gtopology::gelements, mechtop::give_elemnodes(), gelement::give_master_nodes(), gtopology::give_ndofe(), mechtop::give_ndofe(), mechtop::give_ndofn(), mechtop::give_nne(), Gtm, probdesc::homog, gtopology::leso, loe, Mp, Mt, mtxv(), mechtop::ne, loadel::nf, nle, gelement::nmne, mechtop::nn, nod, mechtop::nodes, node::r, element::react, node::react, reallocv(), and element::tmat.
Referenced by compute_req_val(), and solve_var_stiff_method().
void print | ( | FILE * | out | ) |
Function prints characteristics of static load case into the opened text file.
out | - pointer to the opened FILE |
TKr, 07/02/2013 accroding to read (XFILE *in)
Definition at line 242 of file loadcase.cpp.
References mechtop::give_tncomp(), probdesc::homog, loe, lon, Mp, mstress, Mt, nle, nln, npd, npt, pd, loadel::print(), loadn::print(), pt, temp_file, and tempchang.
Referenced by mechbclc::print(), and dloadcase::print().
void read | ( | XFILE * | in | ) |
Function reads characteristics of static load case from the opened text file.
in | - pointer to the opened XFILE |
Created by JK, 24.7.2001
Definition at line 102 of file loadcase.cpp.
References mechtop::give_tncomp(), probdesc::homog, loe, lon, memset(), Mp, mstrain, mstress, Mt, nle, nln, mechtop::nn, npd, npt, ntemp_file, pd, print_err(), pt, pts, loadel::read(), loadn::read(), temp_file, temp_time, tempchang, probdesc::temperature, xfclose(), xfopen(), and xfscanf().
Referenced by tloadcase::read(), mechbclc::read(), and dloadcase::read().
void tempercontrib | ( | long | lcid, | |
double * | rhs, | |||
double | scale | |||
) |
Function computes contributions from temperature changes to the right hand side (vector of nodal forces).
lcid | - load case id | |
rhs | - pointer to the right hand side | |
scale | - scale factor, it is used for subload cases |
Created by JK, Tomas Koudelka, 21.11.2007
Definition at line 476 of file loadcase.cpp.
References tablefunct::asize, mechmat::est, tablefunct::getval(), intpointval(), tablefunct::itype, Mm, Mp, Mt, mechtop::nn, nodal_eigstrain_forces(), npt, ntemp_file, piecewiselin, pt, pts, temp_time, tempchang, temperature, mechmat::temprstrains(), tempstrain, probdesc::time, tablefunct::x, and tablefunct::y.
Referenced by assemble(), and dloadcase::tempercontrib().
Definition at line 42 of file loadcase.h.
Referenced by assemble(), compute_reactions(), loadcase(), beamel2d::nodal_forces(), print(), read(), and ~loadcase().
Definition at line 40 of file loadcase.h.
Referenced by assemble(), stochdriver::changenodloads(), loadcase(), print(), read(), and ~loadcase().
double* mstrain |
Definition at line 50 of file loadcase.h.
Referenced by assemble(), loadcase(), read(), and ~loadcase().
double* mstress |
Definition at line 48 of file loadcase.h.
Referenced by assemble(), loadcase(), print(), read(), and ~loadcase().
long nle |
number of loaded elements
Definition at line 30 of file loadcase.h.
Referenced by assemble(), compute_reactions(), loadcase(), beamel2d::nodal_forces(), print(), and read().
long nln |
number of loaded nodes
Definition at line 28 of file loadcase.h.
Referenced by assemble(), loadcase(), print(), and read().
long npd |
number of prescribed displacements
Definition at line 32 of file loadcase.h.
Referenced by assemble(), loadcase(), print(), and read().
long npt |
number of prescribed temperature changes
Definition at line 34 of file loadcase.h.
Referenced by loadcase(), print(), read(), and tempercontrib().
long ntemp_file |
number of multiple data files
Definition at line 55 of file loadcase.h.
Referenced by read(), tempercontrib(), and ~loadcase().
double* pd |
Definition at line 44 of file loadcase.h.
Referenced by eldispl(), elprdispl(), dloadcase::get_pd(), loadcase(), prdisplincr(), print(), print_displacements(), read(), select_noddispl(), and ~loadcase().
double* pt |
Definition at line 46 of file loadcase.h.
Referenced by loadcase(), print(), read(), tempercontrib(), and ~loadcase().
double** pts |
Definition at line 57 of file loadcase.h.
Referenced by loadcase(), read(), tempercontrib(), and ~loadcase().
char* temp_file |
data file for reading
Definition at line 53 of file loadcase.h.
Referenced by loadcase(), print(), read(), and ~loadcase().
double* temp_time |
Definition at line 59 of file loadcase.h.
Referenced by loadcase(), read(), and tempercontrib().
long tempchang |
presence of temperature changes
Definition at line 37 of file loadcase.h.
Referenced by loadcase(), print(), read(), tempercontrib(), and ~loadcase().