资源描述:
《用opensees进行截面弯矩-曲率分析》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、用OpenSees进行截面弯矩-曲率分析,分析结果可用于SAP2000自定义铰属性MomentCurvatureExampleFromOpenSeesWikiThisnextexamplecoversthemoment-curvatureanalysisofarectangularreinforcedconcretesection.InthisexampleaZeroLengthelementwiththefiberdiscretizationofthecrosssectionisused.Inadditiontoprovidingun
2、derstandingastothecreationofafibersection,theexampleintroducesTcllanguagefeaturessuchasvariableandcommandsubstitution,expressionevaluationandtheuseofprocedures.Hereisthefile:MomentCurvature.tclNOTE:1.Thelinesinthedashedboxesarelinesthatappearintheinputfile.2.alllinesthat
3、beginwith#arecomments,theyareignoredbytheprogram(interpreter)butareusefulfordocumentingthecode.Whencreatingyourowninputscriptsyouarehighlyencouragedtousecomments.TclBasicsInthetclscriptthatistobepresented,variables,expressionsandproceduresareused.Avariableisasymbolicname
4、giventosomeknownorunknownquantityorinformation,forthepurposeofallowingthenametobeusedindependentlyoftheinformationitrepresents.InTclavariableonceset(withthesetcommand)canthenbesubsequentlyusingthesyntaxof$variable.Thefollowingtclexamplesetsthevariablevtobe2.0,andthenprin
5、tstothescreenamessagesayingwhatthevalueofvis.setv3.0puts"vequals$v"Expressionscanbeevaluatedusingtheexprcommand.Whenusingtheexprcommand,mostmathematicalfunctionsfoundinanyprogramminglanguagecanbeused,e.g.sin(),cos(),max(),min(),abs(),...Itisalsotypicaltocombineanexpressi
6、oncommand,withasetcommand.Todothis,theexprcommandisenclosedinsquarebrackets[]'s.Thefollowingexampledemonstratesthesettingofavariablevtobe3.0,thesettingofanothervariablesumtobetheresultofaddingwhateverthevalueofthevariablevisto2.0,andfinallytheprintingtothescreenofamessag
7、esayingwhatthecurrentvalueofsumis.Typically,theresultofanexpressionisthensettoanothervariable.Asimpleexampletoadd2.0toaparameterandprinttheresultisshownbelow:setv3.0setsum[expr$v+2.0]puts"sumequals$sum";#printthesumMomentCurvature.tclScriptThefilecontains2parts.Thefirstp
8、artcontainsaprocedurenamedMomentCurvature,andthesecondpartcontainsthecreationofthesectionandthesubseque