1 #ifndef MIDAS_ATTRIBUTE_H
2 #define MIDAS_ATTRIBUTE_H
75 _errorr (
"The first LTF is not constant 1 1.0");
83 sprintf (
linerec,
"ConstantFunction 1 f(t) 1.0");
322 dpn != val->
dpn )
return false;
324 for (
int i=0; i<
ncomp; i++)
730 static const int ord = -4;
793 void set_load (
int i,
char flag=
'\0',
int indx=-1);
959 if (
dofbc == NULL)
_errorr2(
"There is no PV with ID = %d", i+1);
1035 if (
dofbc == NULL)
_errorr2(
"There is no PV with ID = %d", i+1);
1210 #endif // MIDAS_ATTRIBUTE_H
virtual ~ProblemAnalysis()
DESTRUCTOR.
Attribute(const Problem *pd, long gid)
CONSTRUCTOR.
void set_virtual(bool val)
ABC_NLoad(const Problem *pd, long gid)
CONSTRUCTOR.
bool is_supported(void) const
virtual void checkConsistency(void) const
Checks data consistency.
void setup_full_alloc_DOFvals(Dvctr *answer, const Dvctr *values) const
const BoundaryCond * give_load(int i) const
AdaptivityParameters * adpa
FacedgeAttribs(const Facedge *owner, const FacedgeAttribs *src)
CONSTRUCTOR COPY.
void set_elemSize(double val)
virtual ~BoundaryCond()
DESTRUCTOR.
void set_load(int i, char flag='\0', int indx=-1)
EdgeAttribs(const Edge *owner, const EdgeAttribs *src)
CONSTRUCTOR COPY.
LCS_pure * lcs
local coordinate systen at node
void set_cs(int i)
void set_NIP (int val) { NIP = val; }
bool give_PDBO(ProbDescBoolOpt pdbo) const
void checkEqualityWith(const PointAttribs *slave) const
const GPA< PointDOFsCondense > * give_conDOFs(void) const
void check_dpn(const DOFsPerNode eldpn) const
virtual void finitialize(void)
finalize preprocessing
virtual void checkConsistency(void) const
Checks data consistency.
virtual void initialize(void)
= 0; = 0;
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
int give_hinge(void) const
virtual ~FacedgeAttribs()
DESTRUCTOR.
ABC_CBLoad(const Problem *pd, long gid)
CONSTRUCTOR.
DOFsPerNode give_dpn(void) const
ElemAttribs(const Element *ow, long p, ElAttLevel eal)
CONSTRUCTOR.
virtual ~FaceAttribs()
DESTRUCTOR.
void set_dofbc(const char *str, femFileFormat ff=FFF_Void)
int give_ndofs(void) const
virtual classID give_classid() const
Returns classID - class identification.
const Point * owner() const
POINTERS TO SUPERIORS.
AssignFix(const Problem *pd, long gid)
CONSTRUCTOR.
void EALdirectCheck(void) const
check this is nongeneral == this has to have owner
void print_linerec(FILE *stream, bool pure) const
FEApproximation give_approx(void) const
double give_elemSize(void) const
GLOBAL.
void set_cs_of_type(CrossSectType type, int id)
virtual void checkConsistency(void) const
Checks data consistency.
void set_nDOFs_BC(int nd, int *bc)
virtual ~ABC_CBLoad()
DESTRUCTOR.
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
void set_FETS(const FiniteElementTypeSet *val)
virtual classID give_classid() const
Returns classID - class identification.
const LCS_beam * give_lcs_global(void) const
virtual void initialize(void)
initialize yourself
FiniteElementType give_expltype_loc(void) const
void set_MatStiffMtrx(int n, double *src)
Attributes(const GeometryComponent *owner, long p)
CONSTRUCTOR.
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
DOFsPerNode give_dpn(void) const
void set_lcs(LCSdirection dir, LCStype typ, const double *auxDv)
long give_dimMC(void) const
double elemSize
vytvorit vedle edge a face jeste volume, pak presunout loads a size VALUES
GPA< const Material > mats
AssignBC(const Problem *pd, long gid)
CONSTRUCTOR.
const PointDOFsBCPM * give_dofbc(void) const
bool is_supported(void) const
virtual ~LoadTimeFunction()
DESTRUCTOR.
bool is_supported(void) const
long give_mat_ID(void)
give material ID, or -1 if mat==NULL
void print_components(FILE *stream) const
void print_Bbc_SIFEL(FILE *stream) const
PointDOFsBCPM * give_PV(long i) const
virtual classID give_classid() const
Returns classID - class identification.
void set_nDOFs_BC(int nd, int *bc)
const GPA< const BoundaryCond > * give_loads(void) const
virtual void finitialize(void)
finalize preprocessing
void read_bc(FILE *stream, femFileFormat fff)
StiffMatrixType stiffmattype
void set_HNmstr(bool val)
const Material * give_mat(void) const
virtual ~Attribute()
DESTRUCTOR.
void check_masters_at_domain(long did) const
virtual classID give_classid() const
Returns classID - class identification.
double give_Ry(void) const
void initialize_atelemet(const Cell *mc, long dimmc, long ordmc, long countMN, const Node **mns, const PoinT *natcoords)
initialize hanging node at element type
bool give_HNmstr(void) const
virtual void initialize(void)
initialize yourself
const PointAttribs * genatt
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
void assemble_full_constrained(Lvctr *aa) const
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
virtual classID give_classid() const
Returns classID - class identification.
CellAttribs(const Cell *owner, const CellAttribs *src)
CONSTRUCTOR COPY.
virtual classID give_classid() const =0
Returns classID - class identification.
virtual ~PointAttribs()
DESTRUCTOR.
const BoundaryCond * give_bcbr(void) const
virtual ~ABC_NLoad()
DESTRUCTOR.
void rescan_att(const char *&str)
long give_cloads(void) const
const Cell * give_MC(void) const
double * contrib
type == 1 ** HN general
PAType give_loctype(void) const
PointDOFsRANHN * doftype
RAN DOF types - contain ndofs, dof type array, master mask array.
DOFsPerNode give_dpn_loc(void) const
LOCAL.
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
double give_thickness(void) const
void set_new(const FacedgeAttribs *src)
LinearSolverType linsoltype
long give_sifid(void) const
*** SET *** *** GET ***
void set_dofbc_with_ID(int i)
check this is nongeneral == this has to have owner
CellAttribs(const Cell *owner, long p)
CONSTRUCTOR.
const CrossSection * give_cs_loc(void) const
const PointDOFsBCPM * give_DOFbc(void) const
Derived class for management of RAN (rigid arm node) or HN (hanging node) connection of DOFs (Degrees...
virtual void initialize(void)
initialize yourself
const CrossSection * give_cs(void) const
const LCS_beam * give_lcs(void) const
int transpmatter
[SIFEL] only - dej jim predponu SIF_
virtual void print_row(FILE *stream, femFileFormat fff, long did) const =0
print row to solver input file
LCS_beam * lcs
OWNED OBJECTS.
virtual ~CrossSection()
DESTRUCTOR.
CrossSection(const Problem *pd, long i)
CONSTRUCTOR.
Assign(const Problem *pd, long gid)
CONSTRUCTOR.
virtual ~ABC_CFLoad()
DESTRUCTOR.
PAGroup give_group(void) const
initialize yourself
ABC_CFLoad(const Problem *pd, long gid)
CONSTRUCTOR.
void print_Fbc_SIFEL(FILE *stream) const
void switch_dpn_Line(void)
virtual classID give_classid() const
Returns classID - class identification.
PointAttribs(const Point *ow, long p, const Problem *pd=NULL, const PointAttribs *gena=NULL)
CONSTRUCTOR.
virtual void initialize(void)
initialize yourself
virtual classID give_classid() const
Returns classID - class identification.
virtual ~EdgeAttribs()
DESTRUCTOR.
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
virtual void checkConsistency(void) const
Checks data consistency.
void print_components_oo(FILE *stream) const
RANAttribs(const Point *ow, long p, const Problem *pd=NULL, const PointAttribs *gena=NULL)
CONSTRUCTOR.
Local coordinate system at beam element.
void set_lcs(LCSdirection dir, LCStype typ, long num)
LinearSolverType
Linear solver type.
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
long give_nsteps(void) const
bool isZero(double zero, double a)
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
ABC_CELoad(const Problem *pd, long gid)
CONSTRUCTOR.
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
virtual void initialize(void)
initialize yourself
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
const int * give_dofBCmask(void) const
void scan_linerec(const char *str)
long SP_scan_line_alloc(const char *&src, char *&dest)
... line; return value is length of the line; dest is NULL and allocated here
virtual void initialize(void)
initialize yourself
void initialize_BC_NL_SIFEL(FILE *stream)
virtual void checkConsistency(void) const
Checks data consistency.
bool is_identical_with(BoundaryCond *val) const
IDENTICAL.
bool is_the_first_BC(void)
long give_prop(void) const
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)=0
initialize form input string
void print_bc(FILE *stream, femFileFormat fff) const
void add_load(const BoundaryCond *val)
const Material * give_mat_loc(void) const
virtual void initialize(void)
initialize yourself
bool has_fullhinge_ends(void) const
virtual classID give_classid() const
Returns classID - class identification.
const Edge * owner() const
POINTERS TO SUPERIORS.
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
virtual void checkConsistency(void) const
finalize preprocessing
const Problem * Pd
Pointer to owner = parent problem.
void set_approx(FEApproximation val)
Material(const Problem *pd, long i)
CONSTRUCTOR.
void reset_dofbc_support_all_rot_dofs(void)
void initialize_first(void)
initialize the first LTF
virtual classID give_classid() const
Returns classID - class identification.
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
SStype give_sst_loc(void) const
virtual ~AssignFix()
DESTRUCTOR.
void print_supported_BC_to_line(FILE *stream, femFileFormat fff) const
virtual void checkConsistency(void) const
Checks data consistency.
double give_Iz(void) const
ProblemAnalysis(const Problem *pd)
CONSTRUCTOR.
const Material * give_mat(int i) const
virtual void initialize(void)
initialize yourself
Material * give_Mat_of_type(MaterialType type, int id) const
CrossSectType give_loctype_or_type(void) const
void integrate_duplicated_one(const ElemAttribs *slv)
void set_bcbr(const BoundaryCond *bc)
const LCS_beam * give_lcs(void) const
CrossSection * give_CS(long i) const
const CrossSection * cs
POINTERS TO ATTRIBUTES listed in problem class cs, mat, ...
virtual classID give_classid() const
Returns classID - class identification.
HNAttribs(const Point *ow, long a, const Problem *pd=NULL, const PointAttribs *gena=NULL)
CONSTRUCTOR.
void copy_bcbr(const BoundaryCond *bc, DOFsPerNode dpn_old, DOFsPerNode dpn_new)
Lvctr * resize_ignore_vals(long newsize)
resize, ignore values
void setadd_loctype_sifif(BCType loct, int locid)
const BoundaryCond * bcbr
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
GPA - Generic Pointer Array, template class manages 1d array of pointers to objects of type T...
virtual classID give_classid() const
Returns classID - class identification.
Attributes(const GeometryComponent *owner, const Attributes *src)
CONSTRUCTOR COPY.
const LCS_beam * give_lcs_loc(void) const
GPA< PointDOFsCondense > * conDOFs
void complete_setup_yourself(const Node *mstr)
Derived class for management of boundary conditions and physical meanings of DOFs (Degrees Of Freedom...
SStype
type of stress/strain state of element; especially results depends on this variable => described at M...
virtual ~ElemAttribs()
DESTRUCTOR.
void add_areaYyYz(double w, double h)
MaterialType give_loctype(void) const
virtual void initialize(void)
initialize yourself
void print_one_row(FILE *stream, long hid) const
PointDOFsRANHN * doftype
RAN DOF types - contain ndofs, dof type array, master mask array.
RANAttribs(const Point *ow, const PointAttribs *src)
CONSTRUCTOR COPY.
double give_area(void) const
SStype give_sst(void) const
BCType give_loctype(void) const
virtual void initialize(void)
initialize yourself
virtual void checkConsistency(void) const
Checks data consistency.
virtual void initialize(void)
initialize yourself
virtual void initialize(void)
initialize yourself
bool give_virtual(void) const
void print_block_SIFEL(FILE *stream) const
print analysis block of SIFEL input file
FaceAttribs(const Face *owner, long p)
CONSTRUCTOR.
const CrossSection * cs
POINTERS TO ATTRIBUTES listed in problem class.
LoadTimeFunction(const Problem *pd, long i)
CONSTRUCTOR.
DOFsPerNode give_dpn_default(void) const
DEFAULT.
void print_DofIDMask_OOFEM(FILE *stream) const
const Face * owner() const
POINTERS TO SUPERIORS.
double give_component(int i) const
DOFsPerNode give_DOFspnod(void) const
virtual ~GelemAttribs()
DESTRUCTOR.
virtual ~ABC_CELoad()
DESTRUCTOR.
BoundaryCond(const Problem *pd, long i)
CONSTRUCTOR.
FaceAttribs(const Face *owner, const FaceAttribs *src)
CONSTRUCTOR COPY.
void assemble_full_constrained(Lvctr *aa) const
const int * give_DOFbc_mask(void) const
const Cell * MC
type == 2 ** HN at finite element
bool SP_scan_expected_word(const char *&src, const char *expctd, bool cs)
... word and compare with expected one
Derived class for management of condensed DOFs (Degrees Of Freedom) at a node.
void initialize_general(long countMN, const Node **mns, const double *cntrb, int n, int *val)
initialize hanging node general
void fillYourselfBy(long val)
Set all elements of the array to the given value.
bool is_loaded(void) const
virtual ~CellAttribs()
DESTRUCTOR.
GelemAttribs(const Element *ow, long p, ElAttLevel eal)
CONSTRUCTOR.
FiniteElementType expltype
void set_elemCount(long val)
PointDOFsBCPM * dofbc
OWNED OBJECTS.
BCType give_type(void) const
virtual ~Attributes()
DESTRUCTOR.
double give_elemSize_loc(void) const
LOCAL.
FacedgeAttribs(const Facedge *owner, long p)
CONSTRUCTOR.
*** *** *** *** CLASS COMPONENT *** *** *** ***
CrossSectType give_type(void) const
bool scan_components(FILE *stream, int ncmp)
tato struktura by mela obsahovat vsechny potrebne informace pro urceni konkretni implementace konecne...
FiniteElementTypeSet * give_FETS(FiniteElementTypeSet *set) const
GLOBAL, EAL_direct only.
void add_master_to_domain(long did)
long give_elemCount_loc(void) const
Local coordinate system defined by 2 vectors.
virtual ~AssignBC()
DESTRUCTOR.
bool print_prescribed_values(FILE *stream, femFileFormat fff) const
oofem a ansys berou podepreni jako predepsane posunuti velikosti 0.0 ale sifel zadava podepreni jako ...
PointDOFsBCPM * dofbc
OWNED OBJECTS.
bool * give_HNmstr_loc(void) const
void print_Ebc_SIFEL(FILE *stream) const
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
void print_row_OOFEM(FILE *stream) const
print analysis row of OOFEM input file
GPA< const BoundaryCond > loads
POINTERS TO ATTRIBUTES listed in problem class.
StiffMatrixType
Stiffness matrix type.
EdgeAttribs(const Edge *owner, long p)
CONSTRUCTOR.
virtual classID give_classid() const
Returns classID - class identification.
virtual ~RANAttribs()
DESTRUCTOR.
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
FEApproximation give_approx_loc(void) const
int give_global_nDOFs(void) const
virtual classID give_classid() const
Returns classID - class identification.
virtual ~Material()
DESTRUCTOR.
virtual void initialize(void)
initialize yourself
DOFsPerNode dpn
FINITE ELEMENT TYPE SET // viz alias.h.
double give_Iy(void) const
FElemAttribs(const Element *ow, long p, ElAttLevel eal, const Problem *pd=NULL)
CONSTRUCTOR.
FiniteElementType give_expltype(void) const
double give_width(void) const
void initialize_the_first_BC(void)
bool isOOFEMplast(void) const
virtual ~HNAttribs()
DESTRUCTOR.
virtual void checkConsistency(void) const
Checks data consistency.
void set_lcs(LCSdirection dir, LCStype typ, long num)
SStype give_sst_default(void) const
const CrossSection * give_cs(void) const
void set_mat_of_type(MaterialType type, int id)
double give_elemCount(void) const
void set_dofbc_copy_of(const PointDOFsBCPM *src)
const FElement * f_owner() const
POINTERS TO SUPERIORS.
classID
Type introduced to distinguish between classes.
void set_cs_of_type(CrossSectType type, int id)
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
void deallocateCheck(ArgType *p, bool check=true)
*** *** *** *** DEALLOCATE TEMPLATES *** *** *** ***
CrossSection * give_CS_of_type(CrossSectType type, int id) const
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
virtual ~Assign()
DESTRUCTOR.
virtual void checkConsistency(void) const
Checks data consistency.
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
GelemAttribs(const Element *ow, const GelemAttribs *src, ElAttLevel eal)
CONSTRUCTOR COPY.
int give_ncomp(void) const
void BC_att_SIFEL_NODEBC_revert(void)
*** BC ***
double give_height(void) const
int give_nlayers(void) const
virtual bool initialize_from(const char *&str, femFileFormat ff, bool all=true)
initialize form input string
Material * give_Mat(long i) const
assignment of attributes to element
bool FP_scan_array(FILE *stream, int n, int *dest)
scan/copy array of numbers from src to dest, src pointer is shifted over the field ...
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
PAGroup
The group of problem analysis.
IntPointSet give_IPset(void) const
virtual classID give_classid() const
Returns classID - class identification.
PAType give_type(void) const
virtual ~FElemAttribs()
DESTRUCTOR.
void add_masters_to_domain(long did)
const Element * owner() const
POINTERS TO SUPERIORS.
int give_nDOFs(void) const
void set_dpn(DOFsPerNode val)
const GeometryComponent * GC
Pointer to owner == parent geometry component.
MaterialType give_type(void) const
FEApproximation
finite element approximation
void set_dofbc_with_ID(int i)
void set_fullhinge_at(int point)
Classes PointDOFsAttributes, PointDOFsBCPM, PointDOFsRANHN and PointDOFsCondense. ...
IntPointSet give_IPset_loc(void) const
virtual void print_row(FILE *stream, femFileFormat fff, long did) const
print row to solver input file
virtual void initialize(void)
initialize yourself