| 68 | |
| 69 | |
| 70 | int main(int argc, char **argv) |
| 71 | { |
| 72 | |
| 73 | // |
| 74 | // now create a domain and a modelbuilder |
| 75 | // and build the model |
| 76 | // |
| 77 | |
| 78 | Domain *theDomain = new Domain(); |
| 79 | |
| 80 | // create the Modelbuilder and invoke buildFE_Model() on it to create |
| 81 | // the domain components. |
| 82 | |
| 83 | ModelBuilder *theModelBuilder = new PlaneFrame(*theDomain); |
| 84 | theModelBuilder->buildFE_Model(); |
| 85 | |
| 86 | // create an Analysis object to perform a static analysis of the model |
| 87 | // - constructs: |
| 88 | // AnalysisModel of type AnalysisModel, |
| 89 | // EquiSolnAlgo of type Linear |
| 90 | // StaticIntegrator of type LoadControl |
| 91 | // ConstraintHandler of type Penalty |
| 92 | // DOF_Numberer which uses RCM |
| 93 | // LinearSOE of type Band SPD |
| 94 | // and then the StaticAnalysis object |
| 95 | |
| 96 | AnalysisModel *theModel = new AnalysisModel(); |
| 97 | EquiSolnAlgo *theSolnAlgo = new Linear(); |
| 98 | StaticIntegrator *theIntegrator = new LoadControl(1.0, 1, 1.0, 1.0); |
| 99 | ConstraintHandler *theHandler = new PenaltyConstraintHandler(1.0e8,1.0e8); |
| 100 | RCM *theRCM = new RCM(); |
| 101 | DOF_Numberer *theNumberer = new DOF_Numberer(*theRCM); |
| 102 | BandSPDLinSolver *theSolver = new BandSPDLinLapackSolver(); |
| 103 | LinearSOE *theSOE = new BandSPDLinSOE(*theSolver); |
| 104 | |
| 105 | StaticAnalysis theAnalysis(*theDomain, |
| 106 | *theHandler, |
| 107 | *theNumberer, |
| 108 | *theModel, |
| 109 | *theSolnAlgo, |
| 110 | *theSOE, |
| 111 | *theIntegrator); |
| 112 | |
| 113 | // perform the analysis & print out the results for the domain |
| 114 | theAnalysis.analyze(1); |
| 115 | opserr << *theDomain; |
| 116 | |
| 117 | exit(0); |
| 118 | } |
| 119 |
nothing calls this directly
no test coverage detected