#include <stochdriver.h>
Public Member Functions | |
| void | assemble_new_values (long sampleid) |
| void | changecrsections (long id, vector &val) |
| void | changematerials (long id, vector &val) |
| void | changenodloads (long id, vector &val) |
| void | changevalues (long sampleid) |
| void | compute_nprunknowns () |
| void | diagpostproc () |
| void | extractor () |
| void | read (XFILE *in) |
| void | readtable (XFILE *in) |
| void | replace_values () |
| void | save_results (long sampleid) |
| stochdriver () | |
| void | update_auxparam () |
| void | writetable () |
| ~stochdriver () | |
Public Attributes | |
| atsel * | atcs |
| atsel * | atln |
| atsel * | atm |
| char | auxfilein [1001] |
| name of auxiliary file | |
| char | auxfileout [1001] |
| double * | avi |
| array of actual input variables | |
| double * | avo |
| array of actual output variables | |
| crsectype * | cst |
| data about cross-section types | |
| XFILE * | datin |
| input stream; contains particular samples | |
| FILE * | datout |
| output stream; contains particular samples | |
| long * | ena |
| array containing numbers of elements | |
| atsel * | ev |
| description of printed values on elements | |
| fuzzygen | fg |
| generator of fuzzy numbers | |
| fuzzynum * | fn |
| output fuzzy numbers | |
| long * | idcs |
| long * | idln |
| stochastic loaded nodes | |
| long * | idm |
| mattype * | mt |
| data about material types | |
| long | ndispl |
| long | neigv |
| number of required eigenvectors | |
| long | nelem |
| long * | nna |
| array conatining numbers of nodes | |
| long | npev |
| number of elements with printed values | |
| long | npnd |
| number of printed nodal displacements | |
| long | nprunknowns |
| number of printed output variables | |
| long | nsampl |
| number of samples | |
| long | nscs |
| number of stochastic cross-sections | |
| long | nsmt |
| number of stochastic materials | |
| long | nsnl |
| number of stochastic nodal loads | |
| long | nstochvar |
| number of stochastic variables | |
| atsel * | pnd |
| numbers of particular DOFs | |
| matrix | stochtabin |
| matrix | stochtabout |
class stochdriver
this class controles stochastic computations
JK, TK
Definition at line 20 of file stochdriver.h.
| stochdriver | ( | ) |
| ~stochdriver | ( | ) |
| void assemble_new_values | ( | long | sampleid | ) |
function assembles new input data for the next sample
JK
Definition at line 309 of file stochdriver.cpp.
References avi, datin, fg, fuzzygen::give_new_values(), Mp, nstochvar, Out, probdesc::stochasticcalc, stochtabin, and xfscanf().
Referenced by changevalues(), and par_solve_stochastic_problem().
| void changecrsections | ( | long | id, | |
| vector & | val | |||
| ) |
Definition at line 475 of file stochdriver.cpp.
References atcs, crsec3d::changeparam(), crsecplstr::changeparam(), crsec3dbeam::changeparam(), crsec2dbeam::changeparam(), crsec2dbar::changeparam(), mechcrsec::cs2dbar, mechcrsec::cs2dbeam, mechcrsec::cs3d, mechcrsec::cs3dbeam, cs3dprob, csbar2d, csbeam2d, csbeam3d, csplanestr, mechcrsec::csplstr, cst, idcs, Mc, and nocrosssection.
Referenced by replace_values().
| void changematerials | ( | long | id, | |
| vector & | val | |||
| ) |
function changes nondeterministic material parameters
| id | - material id | |
| val | - vector of sample values |
JK
Definition at line 392 of file stochdriver.cpp.
References atm, chen::changeparam(), microM4::changeparam(), j2flow::changeparam(), splas1d::changeparam(), elastisomat::changeparam(), chenplast, mechmat::chplast, mechmat::eliso, elisomat, idm, mechmat::j2f, jflow, microplaneM4, Mm, mechmat::mpM4, mt, simplas1d, and mechmat::spl1d.
Referenced by replace_values().
| void changenodloads | ( | long | id, | |
| vector & | val | |||
| ) |
Definition at line 507 of file stochdriver.cpp.
References atln, loadn::changeparam(), idln, mechbclc::lc, loadcase::lon, and Mb.
Referenced by replace_values().
| void changevalues | ( | long | sampleid | ) |
function changes stochastic values
| sampleid | - sample id |
13.3.2003
Definition at line 295 of file stochdriver.cpp.
References assemble_new_values(), and replace_values().
Referenced by solve_mefel_stochastic_problem().
| void compute_nprunknowns | ( | ) |
function computes number of output unknowns
12.2.2005, JK
Definition at line 234 of file stochdriver.cpp.
References eigen_dynamics, Mp, ndispl, neigv, nelem, npev, npnd, nprunknowns, atsel::num, pnd, and probdesc::tprob.
Referenced by read().
| void diagpostproc | ( | ) |
function makes postprocessing of diagrams obtained during stochastic or fuzzy computation of nonlinear problems
JK, 12.6.2005
Definition at line 607 of file stochdriver.cpp.
References filename_decomposition(), gfunct::init_tab(), outdiagm::npun, nsampl, outdriverm::odiag, outdriverm::outdiagfn, Outdm, gfunct::tabf, tablefunct::x, and tablefunct::y.
| void extractor | ( | ) |
function extracts required output values
JK
Definition at line 517 of file stochdriver.cpp.
References avo, eigen_dynamics, mechtop::give_dof(), lhsrhs::lhs, Lsrs, Mp, Mt, Ndofm, neigv, nna, npnd, atsel::num, pnd, and probdesc::tprob.
Referenced by par_solve_stochastic_problem(), and solve_mefel_stochastic_problem().
| void read | ( | XFILE * | in | ) |
function reads data from the input file
| in | - input stream |
JK
Definition at line 85 of file stochdriver.cpp.
References allocm(), fuzzygen::alpha, atcs, atln, atm, auxfilein, auxfileout, avi, avo, compute_nprunknowns(), crsectype_kwdset(), cst, datin, datout, eigen_dynamics, probdesc::eigsol, ena, fg, fn, idcs, idln, idm, fuzzynum::initiate(), mattype_kwdset(), Mespr, Mp, mt, fuzzygen::nalph, eigvalsol::neigv, neigv, fuzzygen::nfv, nna, npev, npnd, nprunknowns, nsampl, nscs, nsmt, nsnl, nstochvar, pnd, atsel::read(), fuzzygen::read(), readtable(), probdesc::stochasticcalc, stochtabout, fuzzygen::tncomb, probdesc::tprob, xfopen(), and xfscanf().
Referenced by mefel_init(), and pmefel_init().
| void readtable | ( | XFILE * | in | ) |
function reads table of stochastic values number of rows = number of samples number of columns = number of stochastic variables in the problem
13.3.2003
Definition at line 268 of file stochdriver.cpp.
References allocm(), nsampl, nstochvar, readm(), and stochtabin.
Referenced by read().
| void replace_values | ( | ) |
function replaces nondeterministic variables by new values
JK
Definition at line 337 of file stochdriver.cpp.
References allocv(), atcs, atln, atm, avi, changecrsections(), changematerials(), changenodloads(), destrv(), nscs, nsmt, nsnl, and atsel::num.
Referenced by changevalues(), and par_solve_stochastic_problem().
| void save_results | ( | long | sampleid | ) |
function stores extracted values required values are extracted to the array avo
| sampleid | - sample id |
JK
Definition at line 580 of file stochdriver.cpp.
References avo, datout, fg, fn, Mp, nprunknowns, fuzzygen::save_values(), probdesc::stochasticcalc, and stochtabout.
Referenced by solve_mefel_stochastic_problem().
| void update_auxparam | ( | ) |
Definition at line 703 of file stochdriver.cpp.
References fuzzygen::actalph, fuzzygen::actcomb, fg, Mp, fuzzygen::ncomb, and probdesc::stochasticcalc.
| void writetable | ( | ) |
function reads table of stochastic values number of rows = number of samples number of columns = number of stochastic variables in the problem
13.3.2003
Definition at line 281 of file stochdriver.cpp.
References datout, printm(), and stochtabout.
Referenced by solve_mefel_stochastic_problem().
Definition at line 73 of file stochdriver.h.
Referenced by changecrsections(), read(), replace_values(), stochdriver(), and ~stochdriver().
Definition at line 77 of file stochdriver.h.
Referenced by changenodloads(), read(), replace_values(), stochdriver(), and ~stochdriver().
Definition at line 68 of file stochdriver.h.
Referenced by changematerials(), read(), replace_values(), stochdriver(), and ~stochdriver().
| char auxfilein[1001] |
| char auxfileout[1001] |
Definition at line 56 of file stochdriver.h.
Referenced by read().
| double* avi |
array of actual input variables
Definition at line 116 of file stochdriver.h.
Referenced by assemble_new_values(), read(), replace_values(), stochdriver(), and ~stochdriver().
| double* avo |
array of actual output variables
Definition at line 118 of file stochdriver.h.
Referenced by extractor(), read(), save_results(), stochdriver(), and ~stochdriver().
data about cross-section types
Definition at line 71 of file stochdriver.h.
Referenced by changecrsections(), read(), stochdriver(), and ~stochdriver().
input stream; contains particular samples
Definition at line 120 of file stochdriver.h.
Referenced by assemble_new_values(), read(), stochdriver(), and ~stochdriver().
| FILE* datout |
output stream; contains particular samples
Definition at line 122 of file stochdriver.h.
Referenced by read(), save_results(), solve_mefel_stochastic_problem(), stochdriver(), writetable(), and ~stochdriver().
| long* ena |
array containing numbers of elements
Definition at line 103 of file stochdriver.h.
Referenced by read(), stochdriver(), and ~stochdriver().
description of printed values on elements
Definition at line 105 of file stochdriver.h.
Referenced by stochdriver(), and ~stochdriver().
generator of fuzzy numbers
Definition at line 126 of file stochdriver.h.
Referenced by assemble_new_values(), read(), save_results(), and update_auxparam().
output fuzzy numbers
Definition at line 128 of file stochdriver.h.
Referenced by read(), save_results(), solve_mefel_stochastic_problem(), stochdriver(), and ~stochdriver().
| long* idcs |
Definition at line 72 of file stochdriver.h.
Referenced by changecrsections(), read(), stochdriver(), and ~stochdriver().
| long* idln |
stochastic loaded nodes
Definition at line 76 of file stochdriver.h.
Referenced by changenodloads(), read(), stochdriver(), and ~stochdriver().
| long* idm |
Definition at line 67 of file stochdriver.h.
Referenced by changematerials(), read(), stochdriver(), and ~stochdriver().
data about material types
Definition at line 66 of file stochdriver.h.
Referenced by changematerials(), read(), stochdriver(), and ~stochdriver().
| long ndispl |
Definition at line 108 of file stochdriver.h.
Referenced by compute_nprunknowns().
| long neigv |
number of required eigenvectors
Definition at line 98 of file stochdriver.h.
Referenced by compute_nprunknowns(), extractor(), read(), and stochdriver().
| long nelem |
Definition at line 108 of file stochdriver.h.
Referenced by compute_nprunknowns().
| long* nna |
array conatining numbers of nodes
Definition at line 93 of file stochdriver.h.
Referenced by extractor(), read(), stochdriver(), and ~stochdriver().
| long npev |
number of elements with printed values
Definition at line 101 of file stochdriver.h.
Referenced by compute_nprunknowns(), and read().
| long npnd |
number of printed nodal displacements
Definition at line 91 of file stochdriver.h.
Referenced by compute_nprunknowns(), extractor(), read(), and solve_mefel_stochastic_problem().
| long nprunknowns |
number of printed output variables
Definition at line 84 of file stochdriver.h.
Referenced by compute_nprunknowns(), read(), save_results(), and stochdriver().
| long nsampl |
number of samples
Definition at line 80 of file stochdriver.h.
Referenced by diagpostproc(), par_solve_stochastic_problem(), read(), readtable(), solve_mefel_stochastic_problem(), and stochdriver().
| long nscs |
number of stochastic cross-sections
Definition at line 61 of file stochdriver.h.
Referenced by read(), replace_values(), and stochdriver().
| long nsmt |
number of stochastic materials
Definition at line 59 of file stochdriver.h.
Referenced by read(), replace_values(), and stochdriver().
| long nsnl |
number of stochastic nodal loads
Definition at line 63 of file stochdriver.h.
Referenced by read(), replace_values(), and stochdriver().
| long nstochvar |
number of stochastic variables
Definition at line 82 of file stochdriver.h.
Referenced by assemble_new_values(), par_solve_stochastic_problem(), read(), readtable(), and stochdriver().
numbers of particular DOFs
Definition at line 95 of file stochdriver.h.
Referenced by compute_nprunknowns(), extractor(), read(), solve_mefel_stochastic_problem(), stochdriver(), and ~stochdriver().
Definition at line 86 of file stochdriver.h.
Referenced by assemble_new_values(), and readtable().
Definition at line 87 of file stochdriver.h.
Referenced by read(), save_results(), and writetable().
1.6.2