资源描述:
《Scientific Programming II”Introduction to C and MFC”.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Version2.01-October17,2005ScientificProgrammingII”IntroductiontoC++andMFC”OlafKolditzCenterforAppliedGeosciencesUniversityofT¨ubingenWS2005/2006°cZAGPublisher2005Chapter1Object-orientedfiniteelementanalysisDesign,implementationandapplicationofaconceptforobject-orie
2、ntationinfiniteelementanalysisofmulti-fieldproblemsispresentedinthispaper.Thebasicideaofthisconceptisthattheunderlyinggoverningequationsofporousmediamechanicscanbeclassifiedintodifferenttypesofpartialdifferentialequations(PDEs).Inprinciple,equaltypesofPDEsfordiverseph
3、ysicalproblemsdifferonlyinmaterialcoefficients.LocalelementmatricesandvectorsarisingfromthefiniteelementdiscretizationofthePDEsarecategorizedintoseveraltypes,regardlessofwhichphysicalproblem(i.e.fluidflow,massandheattransportordeformationprocesses)theybelongto.Element(
4、ELE)objectsareintroducedtocarryoutthelocalassem-blyofthealgebraicequations.Theobject-orientationincludesastrictencapsulationofgeometrical(GEO),topological(MSH),process-related(FEM)dataandmethodsofelementobjects.Geometricentitiesofanelementsuchasnodes,edges,faces,
5、neighborsareabstractedintocorrespondinggeometricelementobjects(ELE-GEO).Therelationshipsamongofthesegeometricentitiesformthetopologyofelementmeshes(ELE-MSH).Finiteelementobjects(ELE-FEM)arepresentedforthelocalelementcalculations,inwhicheachclassificationtypeofmatr
6、icesandvectorsiscomputedbyauniquefunction.Theseelementfunctionsareabletodealwithdifferentgeometrictypes(lines,triangles,quads,tetrahedra,prisms,hexhedra)au-tomaticallyapplyingtherelatedelementinterpolationfunctions.Foreachprocessofamulti-fieldproblem,onlyasingleins
7、tanceofthefiniteelementobjectisre-quired.Theelementobjectsprovideaflexiblycodingenvironmentformulti-fieldproblemswithdifferentelementtypes.TheC++implementationsoftheobjectsaregivenanddescribedindetail.Theefficiencyofthenewelementobjectsisdemonstratedbyseveraltestcasesd
8、ealingwiththermo-hydro-mechanical(THM)coupledproblemsforgeotechnicalapplications.21.1INTRODUCTION31.1IntroductionThenumericalanalysisofcomplexmulti-fieldproblem