资源描述:
《用opensees进行截面弯矩-曲率分析》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、用OpenSees进行截面弯矩-曲率分析,分析结果可用于SAP2000自定义铰属性MomentCurvatureExampleFromOpenSeesWikiThisnextexamplecoversthemoment-curvatureanalysisofarectangularreinforcedconcretesection.InthisexampleaZeroLengthelementwiththefiberdiscretizationofthecrosssectionisused.Inadditiontoprovidingunderstandingastothec
2、reationofafibersection,theexampleintroducesTcllanguagefeaturessuchasvariableandcommandsubstitution,expressionevaluationandtheuseofprocedures.Hereisthefile:MomentCurvature.tclNOTE:1.Thelinesinthedashedboxesarelinesthatappearintheinputfile.2.alllinesthatbeginwith#arecomments,theyareignoredby
3、theprogram(interpreter)butareusefulfordocumentingthecode.Whencreatingyourowninputscriptsyouarehighlyencouragedtousecomments.TclBasicsInthetclscriptthatistobepresented,variables,expressionsandproceduresareused.Avariableisasymbolicnamegiventosomeknownorunknownquantityorinformation,forthepurp
4、oseofallowingthenametobeusedindependentlyoftheinformationitrepresents.InTclavariableonceset(withthesetcommand)canthenbesubsequentlyusingthesyntaxof$variable.Thefollowingtclexamplesetsthevariablevtobe2.0,andthenprintstothescreenamessagesayingwhatthevalueofvis.setv3.0puts"vequals$v"Expressio
5、nscanbeevaluatedusingtheexprcommand.Whenusingtheexprcommand,mostmathematicalfunctionsfoundinanyprogramminglanguagecanbeused,e.g.sin(),cos(),max(),min(),abs(),...Itisalsotypicaltocombineanexpressioncommand,withasetcommand.Todothis,theexprcommandisenclosedinsquarebrackets[]'s.Thefollowingexa
6、mpledemonstratesthesettingofavariablevtobe3.0,thesettingofanothervariablesumtobetheresultofaddingwhateverthevalueofthevariablevisto2.0,andfinallytheprintingtothescreenofamessagesayingwhatthecurrentvalueofsumis.Typically,theresultofanexpressionisthensettoanothervariable.Asimpleexampletoadd2
7、.0toaparameterandprinttheresultisshownbelow:setv3.0setsum[expr$v+2.0]puts"sumequals$sum";#printthesumMomentCurvature.tclScriptThefilecontains2parts.ThefirstpartcontainsaprocedurenamedMomentCurvature,andthesecondpartcontainsthecreationofthesectionandthesubseque