loadcase Class Reference

#include <loadcase.h>

List of all members.

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

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

Detailed Description

Class loadcase defines load cases in static problems.

Created by JK,

Definition at line 16 of file loadcase.h.


Constructor & Destructor Documentation

loadcase ( void   ) 

Constructor initializes data members to zero or default values.

Created by JK,

Definition at line 22 of file loadcase.cpp.

References loe, lon, mstrain, mstress, nle, nln, npd, npt, pd, pt, pts, temp_file, temp_time, and tempchang.

~loadcase ( void   ) 

Destructor releases allocated memory of the loadcase object.

Created by JK,

Definition at line 61 of file loadcase.cpp.

References loe, lon, mstrain, mstress, ntemp_file, pd, pt, pts, temp_file, and tempchang.


Member Function Documentation

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.

Parameters:
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  ) 
void print ( FILE *  out  ) 

Function prints characteristics of static load case into the opened text file.

Parameters:
out - pointer to the opened FILE
Returns:
The function does not return anything.

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.

Parameters:
in - pointer to the opened XFILE
Returns:
The function does not return anything.

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

Parameters:
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().


Member Data Documentation

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
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().


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

Generated by  doxygen 1.6.2