|
FEBio
1.5.0
|
00001 #pragma once 00002 #include "FEDomain.h" 00003 00004 //----------------------------------------------------------------------------- 00006 class FEDiscreteDomain : public FEDomain 00007 { 00008 public: 00009 FEDiscreteDomain(int ntype, FEMesh* pm, FEMaterial* pmat) : FEDomain(ntype, pm, pmat) {} 00010 00011 void create(int n) { m_Elem.resize(n); } 00012 int Elements() { return (int) m_Elem.size(); } 00013 FEElement& ElementRef(int n) { return m_Elem[n]; } 00014 00015 bool Initialize(FEModel& fem); 00016 00017 int Nodes() { return (int) m_Node.size(); } 00018 FENode& Node(int i); 00019 00020 protected: 00021 vector<int> m_Node; 00022 vector<FEDiscreteElement> m_Elem; 00023 };
1.7.5.1