00001 // -------------------------------------------------------------------------- 00002 // 00003 // Domain.h - This header file contains the public data structure 00004 // definitions for domain uniform loads. 00005 // 00006 // ------------------------------------------------------------------------- 00007 // 00008 // Entry Points: 00009 // 00010 // -------------------------------------------------------------------------- 00011 // 00012 // void cDomainUniform ( void ) 00013 // 00014 // Initializes sub-class DOMAIN_UNIFORM. 00015 // This method allocates memory for a load element of this class. 00016 // 00017 // -------------------------------------------------------------------------- 00018 // 00019 // void ~cDomainUniform ( void ) 00020 // 00021 // Destructor. Destroy a object of this class. 00022 // 00023 // -------------------------------------------------------------------------- 00024 // 00025 // void Evaluate ( NatCoord *pt, 00026 // double *val ) 00027 // 00028 // pt - evaluation point ( in ) 00029 // val - returned load value ( out ) 00030 // 00031 // This method returns the values of the given load element at the 00032 // given evaluation point (in the element natural coordinates). 00033 // The first three positions of the load value vector are used to 00034 // return the load values. This function implements the case of forces 00035 // in global directions. 00036 // 00037 // -------------------------------------------------------------------------- 00038 // 00039 // void LoadVal ( double val[], 00040 // LoadDir dir ) 00041 // 00042 // val - load values ( in ) 00043 // dir - load direction ( in ) 00044 // 00045 // This method loads the given data to the given load element 00046 // of this class. 00047 // 00048 // -------------------------------------------------------------------------- 00049 // 00050 // void Read ( void ) 00051 // 00052 // This method reads data of a given load element of this class. 00053 // 00054 // -------------------------------------------------------------------------- 00055 // 00056 // $Author: joaquim $ 00057 // $Revision: 1.1 $ 00058 // $Date: 1998/02/16 20:21:11 $ 00059 // $State: Exp $ 00060 // 00061 // -------------------------------------------------------------------------- 00062 00063 #ifndef _DOMAIN_H 00064 #define _DOMAIN_H 00065 00066 #include "gbldefs.h" 00067 #include "lec.h" 00068 00069 00070 // ------------------------------------------------------------------------- 00071 // Definition of a Uniform force Load Element Clas: 00072 // 00073 00074 class cDomainUniform : public cLoadElement 00075 { 00076 protected: 00077 double _dQx,_dQy,_dQz; // Force uniform values 00078 00079 public: 00080 cDomainUniform ( void ); 00081 ~cDomainUniform ( void ); 00082 void Read ( void ); 00083 void Evaluate ( sNatCoord *, double * ); 00084 void LoadVal ( double[], eLoadDir ); 00085 }; 00086 00087 #endif