📄 outdriverm.h
字号:
#ifndef OUTDRIVERM_H#define OUTDRIVERM_H#include <stdio.h>#include "galias.h"#include "selection.h"#include "xfile.h"#include "alias.h"#include "outdiagm.h"#define FNAMELEN 1001//class nodeoutm;//class nodeoutgm;//class elemoutm;//class elemoutgm;//class pointoutm;//class outdriverm;class nodeoutm{ public : /// constructor nodeoutm(); /// destructor ~nodeoutm(); /// reads data from file long read(XFILE *in); /// prints description data to file void print(FILE *out); /// prints values for selected nodes void print_out(FILE *out, long lcid); /// prints displacements at selected nodes void print_disp(FILE *out, long lcid); /// prints averaged strains at selected nodes void print_stra(FILE *out, long lcid); /// prints averaged stresses at selected nodes void print_stre(FILE *out, long lcid); /// prints averaged other values at selected nodes void print_other(FILE *out); /// prints reactions at selected nodes void print_react(FILE *out, long lcid); /// prints nodal values at selected steps sel dstep; /// selections for load cases sel sellc; /// selection of nodes for displacements sel selndisp; /// selections for displacements sel *seldisp; /// selection of nodes for strains sel selnstra; /// selections for strains sel *selstra; /// indices of local coordinate systems for strains long *transtra; /// selection of nodes for stresses sel selnstre; /// selections for stresses sel *selstre; /// indices of local coordinate systems for stresses long *transtre; /// selection of nodes for other values sel selnoth; /// selections for other values sel *seloth; /// reactions output indicator long react; };class nodeoutgm{ public : /// constructor nodeoutgm (); /// destructor ~nodeoutgm (); /// reads data from file long read(XFILE *in); /// prints description data to file void print(FILE *out); /// prints values for selected items to grahics file void print_graphics(FILE *out, long lcid, char *desclcid, graphfmt gf); /// prints values for selected items to to several grahics file void print_graphics(char *outfn, char *mode, long lcid, char *desclcid, graphfmt gf); /// prints element values selected steps sel dstep; /// selections for load cases sel sellc; /// selection of nodes for displacements sel selndisp; /// selections for displacements sel *seldisp; /// selection of items for strains sel selnstra; /// selections for strains sel *selstra; /// indices of local coordinate systems for strains long *transtra; /// selection of items for stresses sel selnstre; /// selections for stresses sel *selstre; /// indices of local coordinate systems for stresses long *transtre; /// selection of items for other values sel selnoth; /// selections for other values sel *seloth;};class elemoutm{ public : /// constructor elemoutm(); /// destructor ~elemoutm(); /// reads data from file long read(XFILE *in); /// prints description data to file void print(FILE *out); /// prints values for selected elements void print_out(FILE *out, long lcid); /// prints strains at selected elements void print_stra(FILE *out, long lcid); /// prints stresses at selected elements void print_stre(FILE *out, long stre); /// prints other values at selected elements void print_other(FILE *out); /// prints element values selected steps sel dstep; /// selections for load cases sel sellc; /// selection of elements for strains sel selestra; /// selections for strains sel *selstra; /// indices of local coordinate systems for strains long *transtra; /// selection of elements for stresses sel selestre; /// selections for stresses sel *selstre; /// indices of local coordinate systems for stresses long *transtre; /// selection of elements for other values sel seleoth; /// selections for other values sel *seloth;};class elemoutgm{ public : /// constructor elemoutgm (); /// destructor ~elemoutgm (); /// reads data from file long read(XFILE *in); /// prints description data to file void print(FILE *out); /// prints values for selected items to grahics file void print_graphics(FILE *out, long lcid, char *desclcid, graphfmt gf); /// prints values for selected items to to several grahics file void print_graphics(char *outfn, char *mode, long lcid, char *desclcid, graphfmt gf); /// prints element values selected steps sel dstep; /// selections for load cases sel sellc; /// selection of items for strains sel selestra; /// selections for strains sel *selstra; /// indices of local coordinate systems for strains long *transtra; /// selection of items for stresses sel selestre; /// selections for stresses sel *selstre; /// indices of local coordinate systems for stresses long *transtre; /// selection of items for other values sel seleoth; /// selections for other values sel *seloth;};class pointoutm{ public : /// constructor pointoutm(); /// destructor ~pointoutm(); /// reads data from file long read(XFILE *in); /// prints description data to file void print(FILE *out); /// prints values for given user defined point void print_out(FILE *out, long lcid); /// prints strains at given user defined point void print_stra(FILE *out, long lcid); /// prints stresses at given user defined point void print_stre(FILE *out, long lcid); /// prints other values at given user defined point void print_other(FILE *out, long pid); /// prints element values selected steps sel dstep; /// number of user defined points long npnt; /// x-coordinate double *ksi; /// y-coordinate double *eta; /// z-coordinate double *zeta; /// selection of elements sel selelem; /// selections for load cases sel sellc; /// selections of points sel *selpnt; /// selections for strains sel *selstra; /// indices of local coordinate systems for strains long *transtra; /// selections for stresses sel *selstre; /// indices of local coordinate systems for stresses long *transtre; /// selections for other values sel *seloth;};class outdriverm{ public : /// constructor outdriverm(); /// destructor ~outdriverm(); /// reads data from file long read(XFILE *in); /// prints description data to file void print(FILE *out); /// prints header for output file void print_header(FILE *out); /// prints header for new step void print_newstep(FILE *out, long step, double time); /// prints values at nodes void print_out(FILE *out, long lcid, long istep, double time); /// prints diagrams void print_diags(long lcid, double lambda, long istep, double *fi); /// prints graphics void print_graphics(FILE *out, long lcid, double lambda, long istep, double *fi); /// creates output graphics files and their headers for GiD separated format (grfmt_gidsp) void create_files_gidsp(char *mode); /// output text filename char outfn[FNAMELEN]; /// output diagrams filename char outdiagfn[FNAMELEN]; /// output graphics filename char outgrfn[FNAMELEN]; /// generated output graphic file name for grfmt_gid_sep format char outgrfngs[FNAMELEN+50]; /// text output flag flagsw textout; /// output text file FILE *outf; /// output diagram files FILE **outdiagf; /// output graphics file FILE *outgr; /// description what will be printed from nodal values nodeoutm no; /// description what will be printed from element values elemoutm eo; /// description what will be printed for each user def. point pointoutm po; /// description what will be printed from nodal values for graphics nodeoutgm nog; /// description what will be printed from element values for graphics elemoutgm eog; /// number of local coordinate systems long nlcs; /// number of components of base vectors long *nclcs; /// base vectors each lcs has base vectors stored in one row double **bvlcs; /// format of grahics file - 0 - none, 1 - openDX, 2 - FemCAD, 3 - GiD graphfmt gf; /// number of cuts exported from 3d mesh to GiD long ncut; /// number of the first node for GiD output (normally should be 1), set by print_init function long idn1; /// number of the first element for GiD output (normally should be 1), set by print_init function long ide1; /// number of output diagrams long ndiag; /// array with description of printed diagrams outdiagm *odiag;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -