Can you help me? This is what I do:
Code: Select all
theSeries = new TrigSeries (0, 200, 1, 0);
GroundMotion *theMotion = new GroundMotion(0, 0, theSeries); theLoadPattern = new UniformExcitation(*theMotion, 2, 1);
int dofArray[3] = {0, 1, 2};
ID *theDofID = new ID(dofArray, 3);
int *nodeArray = {0};
ID *theNodeID = new ID(nodeArray, 1);
const char *filename = "/tmp/DROP/node-0000.dat\0";
const char *data = "disp\0";
Recorder *theRecorder = new NodeRecorder(*theDofID, *theNodeID, 1, *theDomain, filename, data);
AnalysisModel *theModel = new AnalysisModel();
ConvergenceTest *theTest = new CTestNormDispIncr (1.0e-12, 10, 0);
EquiSolnAlgo *theSolnAlgo = new KrylovNewton (*theTest);
TransientIntegrator *theIntegrator = new Newmark(0.5, 0.25);
ConstraintHandler *theHandler = new PenaltyConstraintHandler(1.0e12, 1.0e12);
RCM *theRCM = new RCM();
DOF_Numberer *theNumberer = new DOF_Numberer(*theRCM);
UmfpackGenLinSolver *theSolver = new UmfpackGenLinSolver();
LinearSOE *theSOE = new UmfpackGenLinSOE(*theSolver);
DirectIntegrationAnalysis theAnalysis(*theDomain, *theHandler, *theNumberer, *theModel, *theSolnAlgo, *theSOE, *theIntegrator);
theAnalysis.analyze(200, 0.02);
UmfpackGenLinSOE::setSize - n 108 nnz 5292 lVal 105840
Can someone help me? The documentation isn't really helping...