1 #ifndef __Poisson_Elem_H
2 #define __Poisson_Elem_H
19 GlobalID getElemID()
const {
return globalElemID_;};
20 void setElemID(GlobalID gNID) {globalElemID_ = gNID;
23 int numElemRows()
const {
return numElemRows_;};
24 void numElemRows(
int gNERows) {numElemRows_ = gNERows;};
26 int numElemNodes()
const {
return numElemNodes_;};
27 void numElemNodes(
int gNodes) {numElemNodes_ = gNodes;};
29 double getElemLength()
const {
return elemLength_;};
30 void setElemLength(
double len) {elemLength_ = len;
31 elemLengthIsSet_ =
true;};
33 double getTotalLength()
const {
return totalLength_;};
34 void setTotalLength(
double len) {totalLength_ = len;
35 totalLengthIsSet_ =
true;};
37 int allocateInternals(
int DOF);
38 int allocateLoad(
int DOF);
39 int allocateStiffness(
int DOF);
41 GlobalID* getElemConnPtr(
int& size);
44 double* getElemLoad(
int& size);
46 void calculateStiffness();
47 double** getElemStiff(
int& size);
49 double* getNodalX(
int& size) {size = numElemNodes_;
return(nodalX_);};
50 double* getNodalY(
int& size) {size = numElemNodes_;
return(nodalY_);};
52 void calculateCoords();
54 void messageAbort(
const char* str);
64 GlobalID globalElemID_;
75 bool internalsAllocated_;
80 bool elemLengthIsSet_;
81 bool totalLengthIsSet_;