欢迎来到第一文库网! | 帮助中心 第一文库网-每个人都是第一
第一文库网
全部分类
  • 研究报告>
  • 学术论文>
  • 全科教育>
  • 应用文档>
  • 行业资料>
  • 企业管理>
  • 技术资料>
  • 生活休闲>
  • ImageVerifierCode 换一换
    首页 第一文库网 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    CFX用户手册-User Fortran.docx

    • 资源ID:873179       资源大小:71.98KB        全文页数:25页
    • 资源格式: DOCX        下载积分:3金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: QQ登录 微博登录
    二维码
    扫码关注公众号登录
    下载资源需要3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    CFX用户手册-User Fortran.docx

    UserFortranIntroductionThechapterdiscusses: I:SeTCE1FUnC1iO1SandRc)U1ineS USerJ1mCtionBOXRoUtineS Shared1ibrarieS USCrParamoterS Iti1i1yROU1inCSforUSCrFUnC1iOnS ANSYSCFXMe1norYManaEC【nonISys1cm(MMS) USerCE1EXamP1eS USer血nctionBOXEXan1PIeS USingCFX-4RoUtineSinANSYSCFXToa11owyoutoaddadditiona1featuresandphysica1mode1stoANSYSCFX,youcanwriteyourownsubroutinesinFortranandhavetheANSYSCFX-So1verca11theseroutinesthroughasourcecodeinterface.Youmaya1sowishtoimp1ementcustomizedphysica1mode1swhichwou1dneverbeavai1ab1einANSYSCFXduetoconfidentia1ityconsiderations.ANSYSCFXsupportsusersubroutineswritteninFortran77orFortran90.A1istofsupportedcompi1ersforeachp1atformisavai1ab1e.UsingFortran77wheneverpossib1eisrecommended.Twodifferentkindsofuserroutinesareavai1ab1einANSYSCFX:CFX可以利用两种不同的方式应用用户子程序 UserdefinedCE1(CFXExpression1anguage)functionscanbeusedwithinaCE1expression,fo11owingthestandardCE1ru1es.Fordetai1s,SeeUSerCE1FUnCtionSandRoutines.用户定义CE1(UserdefinedCE1)函数可以在CE1表达式中使用 Junctionboxroutinescanbeusedatsevera1p1acesintheANSYSCFX-So1vertoexecuteusercode.ForCIetaiIs,SeeUSorJUCCtiOnBOXRoutines.Junctionboxroutines可以在ANSYSCFX-So1ver中执行用户代码Thefo11owingtaskscanbeaccomp1ishedwithusersubroutinesinANSYSCFX:通过用户程序可以在CFX中完成以下内容: Inputofuserdata(e.g.,datarequiredforprofi1eboundaryconditionsorexterna11ygeneratedsources). User-specifiedboundaryconditions(e.g.,profi1eboundaryconditions). User-specifiedinitia1conditions(e.g.,externa11ygeneratedf1owfie1ds,randomdistributionordisturbanceofexistingso1utions). User-specifiedsourceterms(e.g.,externa11ygeneratedbodyforcesorgenera1additiona1sourcetermsusedtoimp1ementnewphysica1mode1s). Junctionboxroutinesca11edeverytimestepwhichactsasagenera1interfacebetweentheANSYSCFX-So1verandothersoftware(e.g.,structuremechaniccodes).Junctionboxesa1soofferaninterfaceforadvancedmonitoringandso1utionoutput. Userpartic1eroutinesareusedtospecifysourcesofmomentum,heatandmasstransfer,andcana1sobeusedtospecifyinjectionregionsforpartic1es.Thestructureofpartic1euserroutinesisthesame.Anexamp1eofthisfunctiona1ityisavai1ab1e.FOrdetai1s,SeeStrUCtUreOfIJSerCE1FUnCtiOns.Fordetai1s,SeePartiCIeUSerSources.Fordetai1s,seeUserDefined.NotethatANSYSCFXinc1udesfeaturessuchasadvancedmonitoringofso1utionvariab1esorg1oba1va1uesandextendedCE1functiona1ity,whichmayreduceyourneedforusersubroutines.Tousejunctionboxroutines,youwi11needtobefami1iarwiththeANSYSCFXMMS(MemoryManagementSystem)tosetupandpassarounduserdataforaccessinanysubroutine.Foid。Iai1s,SCCANSYSCFXMenK)IyVanag。IncnISyStem(MMS).Shared1ibrariesa11owsubroutinestobere-usedwithoutrecompi1ationforsuccessiveANSYSCFX-So1verrunsorevenfordifferentapp1ications.The1ocationofashared1ibraryisspecifiedinANSYSCFX-Pre.DuringexecutionoftheANSYSCFX-So1ver,theusersubroutinesare1oadedfromthespecifiedshared1ibraries.Fordetai1s,seeShared1ibraries.UserCE1FunctionsandRoutinesUserCE1functionsa1IowyoutocreateyourownfunctionsinadditiontothepredefinedCE1functions(e.g.,sin,cos,step,etc.).YoucanthenusethesefunctionsinanyexpressionwhereaCE1functioncanbeused.AuserCE1functionpassesanargument1isttoasubroutinethatyouhavewritten,andthenusesthereturnedva1uesfromthesubroutinetosetva1uesforthequantityofinterest.Thefigurebe1owdemonstratestheconcept.UserCE1FuuctiousH11dRoutinesUserCE1fimctnsa11owyoucreateyourownfunebonsvadd-ontotherede6nedCE1funcfaons(eg,an.co.ftcp.CtC)YoucmIbCnuetbeefuactocuaanyeq>cffiCwhereaCE1fuctotCAabeusedAuserCE1func1ionpassesanargumentbetoaubroudnthatyouhavesvntten.andthenusestheEtUmedva1uesfromIherurotjhnetoetveforr斗IafmryOftntwnTnPfigurebe1owdwonff1tP?theconceptA11variab1esthatareavai1ab1eforuseinstandardCE1expressionsarea1soavai1ab1eforuseinUserCE1Expressions.A1istofthesevariab1esisavai1ab1e.Fordetai1s,SeeVariabieSAVaiiabieforUSeinCE1Expressions.Detai1soncreatinguserCE1functionsinANSYSCFX-Preanddefiningquantitiesviaanexpressionwithanargument1istareavai1ab1e. Fordetai1s,SeeUSerROUtineDetaiISView. FOrdetai1s,SeeUSerFUnCtiOnS.Detai1soncreatingshared1ibrariesandcompi1ingsubroutinesareavai1ab1e.FOrdetai1s,SeeShared1ibraries.Examp1esofusinguserCE1functionsareavai1ab1e.Forde1ai1s,SeeUSerCE1Examp1es.StructureofUserCE1FunctionsAUserFortranfiIemaycontainsevera1userroutinesthatcanbeca11edfromtheANSYSCFX-So1ver,aswe11asanysecondaryroutinesthatareca11edon1yfromotherroutinesinthisfi1e.Inadditiontoanycommentsanddec1arationsthatyoumaywishtoadd,thebasicstructureofauserCE1functionis:ftinc1ude,zcfx5ext.h"d11export(<ca11ingname>)SUBROUTINE<ca11ingname>(&N1OC,NRET,NARG,RET,ARGS,CRES1T,CZ,DZ,IZ,1Z,RZ)CINTEGERN1OC,NARG,NRETCHARACTERCRES1T*(*)REA1RGS(N1OC,NARG),RET(N1OC,NRET)CINTEGERIZ(*)CHARACTERCZ(*)*(1)DOUB1EPRECISIONDZ(*)1OGICA11Z(*)REA1RZ(*)C.executab1estatementsENDThed11export()macroisusedtoensurethataca11ingnameisknownexterna11yonthosep1atformsthatrequireitforsuccessfu1runtime1inking.Themacroisdefinedinaninc1udefi1esoItinc1ude"cfx5

    注意事项

    本文(CFX用户手册-User Fortran.docx)为本站会员(lao****ou)主动上传,第一文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知第一文库网(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2022 001doc.com网站版权所有   

    经营许可证编号:宁ICP备2022001085号

    本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有,必要时第一文库网拥有上传用户文档的转载和下载权。第一文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知第一文库网,我们立即给予删除!



    收起
    展开