MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
Classes | Defines | Functions
/home/dorival/mechsys/lib/inpfile.h File Reference
#include <fstream>
#include <mechsys/util/maps.h>
#include <mechsys/util/fatal.h>
#include <mechsys/util/util.h>
#include <mechsys/linalg/matvec.h>
#include <mechsys/fem/element.h>
#include <mechsys/fem/geomelem.h>
#include <mechsys/matfile.h>
#include <mechsys/models/model.h>

Go to the source code of this file.

Classes

class  InpFile

Defines

#define INIT_MAT_INP(argc, argv, inpfn, matfn, verbose, forcegty,MAT, INP)
#define INIT_MAT_INP_(argc, argv,MAT, INP)

Functions

std::ostream & operator<< (std::ostream &os, InpFile const &IF)

Define Documentation

#define INIT_MAT_INP (   argc,
  argv,
  inpfn,
  matfn,
  verbose,
  forcegty,
  MAT,
  INP 
)
Value:
if (argc>1) inpfn   =      argv[1];                                       \
    if (argc>2) matfn   =      argv[2];                                       \
    if (argc>3) verbose = atoi(argv[3]);                                      \
    MatFile MAT;                                                              \
    InpFile INP;                                                              \
    MAT.Read        (matfn.CStr());                                           \
    INP.Read        (inpfn.CStr());                                           \
    INP.SetPrmsInis (MAT, forcegty);                                          \
    if (verbose)                                                              \
    {                                                                         \
        printf("\n%s--- Materials data <%s> ----------------------------------------------------%s\n",TERM_CLR1,matfn.CStr(),TERM_RST); \
        std::cout << MAT << std::endl;                                        \
        printf("\n%s--- Input data <%s> --------------------------------------------------------%s\n",TERM_CLR1,inpfn.CStr(),TERM_RST); \
        std::cout << INP << std::endl;                                        \
    }
#define INIT_MAT_INP_ (   argc,
  argv,
  MAT,
  INP 
)
Value:
String inpfn("input.inp");                \
    String matfn("materials.mat");            \
    bool   verbose  = true;                   \
    bool   forcegty = false;                  \
    INIT_MAT_INP(argc, argv, inpfn, matfn, verbose, forcegty,   MAT, INP);

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
InpFile const &  IF 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines