MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / setTransientAnalysis

Method setTransientAnalysis

SRC/interpreter/OpenSeesCommands.cpp:833–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833void
834OpenSeesCommands::setTransientAnalysis(bool suppress)
835{
836 // delete the old analysis
837 if (theStaticAnalysis != 0) {
838 delete theStaticAnalysis;
839 theStaticAnalysis = 0;
840 }
841 if (theTransientAnalysis != 0) {
842 delete theTransientAnalysis;
843 theTransientAnalysis = 0;
844 }
845
846 // create transient analysis
847 if (theAnalysisModel == 0) {
848 theAnalysisModel = new AnalysisModel();
849 }
850 if (theTest == 0) {
851 theTest = new CTestNormUnbalance(1.0e-6,25,0);
852 }
853 if (theAlgorithm == 0) {
854 if (!suppress) {
855 opserr << "WARNING analysis Transient - no Algorithm yet specified, \n";
856 opserr << " NewtonRaphson default will be used\n";
857 }
858 theAlgorithm = new NewtonRaphson(*theTest);
859 }
860 if (theHandler == 0) {
861 if (!suppress) {
862 opserr << "WARNING analysis Transient - no ConstraintHandler yet specified, \n";
863 opserr << " PlainHandler default will be used\n";
864 }
865 theHandler = new PlainHandler();
866 }
867 if (theNumberer == 0) {
868 if (!suppress) {
869 opserr << "WARNING analysis Transient - no Numberer specified, \n";
870 opserr << " RCM default will be used\n";
871 }
872 RCM* theRCM = new RCM(false);
873 theNumberer = new DOF_Numberer(*theRCM);
874 }
875 if (theTransientIntegrator == 0) {
876 if (!suppress) {
877 opserr << "WARNING analysis Transient - no Integrator specified, \n";
878 opserr << " TransientIntegrator default will be used\n";
879 }
880 setIntegrator(new Newmark(0.5,0.25), true);
881 }
882 if (theSOE == 0) {
883 if (!suppress) {
884 opserr << "WARNING analysis Transient - no LinearSOE specified, \n";
885 opserr << " ProfileSPDLinSOE default will be used\n";
886 }
887 ProfileSPDLinSolver *theSolver;
888 theSolver = new ProfileSPDLinDirectSolver();
889 theSOE = new ProfileSPDLinSOE(*theSolver);
890 }

Callers 1

OPS_AnalysisFunction · 0.45

Calls 6

OPS_ResetCurrentInputArgFunction · 0.70
OPS_GetStringFunction · 0.70
OPS_GetIntInputFunction · 0.70
setEigenSOEMethod · 0.45
setAnalysisModelMethod · 0.45

Tested by

no test coverage detected