11. Python API函数¶
- 11.1. 模块 pySudoMath
- 11.2. 模块 dem
- 11.2.1. 子模块预览
- 11.2.2. 子模块 core API函数
BoxDEMSimBaseDEMSimBase.Pause()DEMSimBase.RunPthread()DEMSimBase.__init__()DEMSimBase.dtDEMSimBase.elapsedTimeDEMSimBase.freeMem()DEMSimBase.getParNum()DEMSimBase.getSystemInfo()DEMSimBase.hooksDEMSimBase.init()DEMSimBase.isLoaded()DEMSimBase.isRunning()DEMSimBase.iter()DEMSimBase.moveToNextTimeStep()DEMSimBase.run()DEMSimBase.setFilePrefix()DEMSimBase.setLoadedFlag()DEMSimBase.setOutputDir()DEMSimBase.speedDEMSimBase.writeVTK()
MaterialPeriodicHookPyHookWallWallDataasync_spdloggerpysinkregister_async_logger()register_logger()set_async_logger()set_logger()spdlogger
- 11.2.3. 子模块 cudem API函数
DEMSimDEMSim.ParRadii()DEMSim.PolysuperShapeParas()DEMSim.PtsPos()DEMSim.__init__()DEMSim.digitalElevationDEMSim.domainDEMSim.fcomputeDEMSim.getPosOri()DEMSim.getShapeGroupInfo()DEMSim.integratorDEMSim.load()DEMSim.loadParticles()DEMSim.loadPthread()DEMSim.moveToNextTimeStep()DEMSim.nlistDEMSim.nlistUpdatesDEMSim.particleScales()DEMSim.pdataDEMSim.printParInfo()DEMSim.reorderIntervalDEMSim.reorderParticles()DEMSim.save()DEMSim.saveParticles()DEMSim.savePthread()DEMSim.useORTDEMSim.useReorderDEMSim.vertsId()DEMSim.vertsNorms()DEMSim.walls
DigitalElevationDomainForceComputeIntegratorNeighborListParticleDataParticleData.__init__()ParticleData.fixParById()ParticleData.fixParticlesbyIds()ParticleData.generatePacking()ParticleData.getAngVelById()ParticleData.getForceTorqueById()ParticleData.getGravPotentialEnergy()ParticleData.getKineticEnergy()ParticleData.getShapeType()ParticleData.getVelById()ParticleData.materialParticleData.printInfo()ParticleData.setVelById()ParticleData.updatePosById()ParticleData.wallMaterial
PolySuperellipsoidDataPolySuperellipsoidData.PtsPos()PolySuperellipsoidData.__init__()PolySuperellipsoidData.getN()PolySuperellipsoidData.getPosById()PolySuperellipsoidData.getVertIndex()PolySuperellipsoidData.loadPos()PolySuperellipsoidData.materialPolySuperellipsoidData.savePos()PolySuperellipsoidData.setPosOri()PolySuperellipsoidData.setShapePara()
SphereData
- 11.2.4. 子模块 rtdem API函数
BoundDEMSimDEMSim.__init__()DEMSim.getInstanceInfo()DEMSim.getMeshNum()DEMSim.getMeshPosOri()DEMSim.getOri()DEMSim.getPos()DEMSim.getPosOri()DEMSim.integratorDEMSim.load()DEMSim.loadPthread()DEMSim.moveMesh()DEMSim.moveToNextTimeStep()DEMSim.particleScales()DEMSim.pdataDEMSim.printParInfo()DEMSim.rebuildIAS_debug()DEMSim.save()DEMSim.savePthread()DEMSim.updatedMeshGUI()DEMSim.verts()DEMSim.vertsId()DEMSim.vertsIdMesh()DEMSim.vertsMesh()DEMSim.vertsNormal()DEMSim.vertsNormalDist()DEMSim.vertsNormalMesh()
IntegratorParticleDataParticleData.__init__()ParticleData.addObject()ParticleData.fixParById()ParticleData.getAngVelById()ParticleData.getForceTorqueById()ParticleData.getGravPotentialEnergy()ParticleData.getKineticEnergy()ParticleData.getVelById()ParticleData.materialParticleData.printInfo()ParticleData.setVelById()ParticleData.updatePosById()ParticleData.wallMaterial
PolyhedronDataPolyhedronData.__init__()PolyhedronData.boundsPolyhedronData.computGeometry()PolyhedronData.getParNum()PolyhedronData.getVertexNum()PolyhedronData.labelPolyhedronData.loadBox()PolyhedronData.loadPlane()PolyhedronData.loadRectangle()PolyhedronData.loadSTL()PolyhedronData.loadVertFacet()PolyhedronData.materialPolyhedronData.setMovable()PolyhedronData.setPosOri()PolyhedronData.setPosition()PolyhedronData.setRayPara()PolyhedronData.setScaleFactors()PolyhedronData.verts()PolyhedronData.vertsId()PolyhedronData.vertsNormal()PolyhedronData.writeVTKflagPolyhedronData.write_stl()
- 11.3. 模块 godem
- 11.3.1. 类预览
- 11.3.2. API函数
BONDCONTACTSTATEGodemGodem.CellVerts()Godem.ParRadii()Godem.PtsPos()Godem.RunPthread()Godem.__init__()Godem.bondNormalStrengthGodem.bondShearStrengthGodem.consolSetting()Godem.consolWithPos()Godem.dampingGodem.deadSetting()Godem.dtGodem.dumpParPos()Godem.generatePacking()Godem.generatePackingOttawa()Godem.generateRVEs()Godem.generateSphereCapPacking()Godem.generateSpherecapRVEs()Godem.getBondNumberDebug()Godem.getInertiaStressDebug()Godem.getInertiaStressGPU()Godem.getRVEContactNum()Godem.getRVEContactNumPair()Godem.getRVEContactNumPre()Godem.getRVEnum()Godem.getRveVoidRatio()Godem.getStrainTensor()Godem.getStressTensor()Godem.getThermalTensorDebug()Godem.isRunning()Godem.iter()Godem.knGodem.ksGodem.load()Godem.loadSingleRVE()Godem.muGodem.plasticiterGodem.plasticphiGodem.plasticpsiGodem.plasticresdnGodem.plasticresdtGodem.prefetchData()Godem.printCellList()Godem.printParInfo()Godem.printSimcellInfo()Godem.printStressTensors()Godem.rhoGodem.run()Godem.save()Godem.saveGeometry()Godem.saveVTK()Godem.setBondContacts()Godem.setVelAng()Godem.setVelGrad()Godem.shearSetting()Godem.shearTest()Godem.simTypeGodem.snapshot()Godem.threadsPerBlockGodem.updateAttrs()Godem.z_dim
RVETYPEBIT
- 11.4. 模块 mpm
- 11.4.1. 类预览
- 11.4.2. API函数
AnalysisAnalysis.NodesPos()Analysis.NodesTemperature()Analysis.PreAnalysis()Analysis.PtsMeanStress()Analysis.PtsPos()Analysis.PtsShearStrain()Analysis.PtsStressYY()Analysis.PtsTemperature()Analysis.PtsTemperatureRemapped()Analysis.Run()Analysis.RunPthread()Analysis.USLAnalysis.__init__()Analysis.addMats()Analysis.addShapes()Analysis.contactengineAnalysis.demstepAnalysis.dtAnalysis.getElements()Analysis.getNodeById()Analysis.getNodes()Analysis.getNonrPts()Analysis.getParById()Analysis.getRigidPts()Analysis.getShapeReactForce()Analysis.getThermalCriticalTimeStep()Analysis.getTimeStep()Analysis.getTrElements()Analysis.getTrNodes()Analysis.gridAnalysis.hooksAnalysis.isRunning()Analysis.iter()Analysis.mapOnceAnalysis.matsAnalysis.nrptsAnalysis.pause()Analysis.printNodesTemperature()Analysis.rigidptsAnalysis.sdfengineAnalysis.setHigherPicOrder()Analysis.setMethod()Analysis.setNumThreads()Analysis.setPicEngineIterperiod()Analysis.setTimeDt()Analysis.shapesAnalysis.simTypeMasksAnalysis.speed()Analysis.splitptsAnalysis.trgridAnalysis.useContact()Analysis.useNFGrid()Analysis.usePtSplit()Analysis.useSDF()Analysis.writer
BCDIRBCFIXSTATECamClayContactEngineDemLineDemPolygonDemPolygon.__init__()DemPolygon.addForce2Pt()DemPolygon.addPts()DemPolygon.getDemForce()DemPolygon.getPts()DemPolygon.getReactionForce()DemPolygon.printInfo()DemPolygon.setContactMatfield()DemPolygon.setDt()DemPolygon.setForceNormalDir()DemPolygon.setGravity()DemPolygon.setInterval()DemPolygon.setPts()DemPolygon.setRange()DemPolygon.setRotFix()DemPolygon.setShapeErr()DemPolygon.usePolygonContact()
DemSphereDpElasticElementGhostmatGridMPMETHODMatTypeMaterialMaterial.KnMaterial.KsMaterial.TresMaterial.__init__()Material.coarsegrainMaterial.freezepointMaterial.frictionMaterial.heatCapacityMaterial.infinistateMaterial.latentratioMaterial.onedMaterial.planestrainMaterial.rhoMaterial.setIndex()Material.setInitDensity()Material.setInitFraction()Material.setThermalProp()Material.thermalExpCoeffMaterial.unfrozenlimitMaterial.unfrozenratioMaterial.usecontentfrozenMaterial.usemultiplek
McMcOriginMpmWriterMptsMptsBaseMptsBase.__init__()MptsBase.getIndex()MptsBase.getNodeList()MptsBase.getNodeSF()MptsBase.getPos()MptsBase.getRemappedT()MptsBase.getShearStrain()MptsBase.getStrain()MptsBase.getStress()MptsBase.getTemperature()MptsBase.getThermalConductivity()MptsBase.getVel()MptsBase.getVol()MptsBase.heatCapacityMptsBase.heatSourceMptsBase.massMptsBase.printInfo()MptsBase.temperature
NeoHookeanNewtonLiquidNodePeriodicHookPhaseTrsfMptsPhaseTrsfMpts.__init__()PhaseTrsfMpts.getCurrentWaterFraction()PhaseTrsfMpts.getDIcefractionDTemp()PhaseTrsfMpts.getPhaseFraction()PhaseTrsfMpts.getPhaseState()PhaseTrsfMpts.getPos()PhaseTrsfMpts.getStrainEnergy()PhaseTrsfMpts.getVel()PhaseTrsfMpts.localbondratioPhaseTrsfMpts.printInfo()PhaseTrsfMpts.printMatInfo()PhaseTrsfMpts.testTheUpdateVol()
PhaseTrsfNodePolygonPyHookRectangleRigidMptsRingSDFengineSIMTYPEMASKShapeShapeTypeSphereSplitRigidMptsTreeElementTreeGridTreeGrid.__init__()TreeGrid.clearLevelConfig()TreeGrid.generate()TreeGrid.getNumEle()TreeGrid.getSpace()TreeGrid.getXrange()TreeGrid.getYrange()TreeGrid.printElements()TreeGrid.printInfo()TreeGrid.printNodes()TreeGrid.runLevelSet()TreeGrid.runRefinement()TreeGrid.setContactDisratio()TreeGrid.setFriction()TreeGrid.setLevel()TreeGrid.setNumEle()TreeGrid.setRange()
TreeNodepostProcess
- 11.5. 模块 mpmdem
- 11.5.1. 类预览
- 11.5.2. API函数
CoupleAnalysisCoupleAnalysis.NodesPos()CoupleAnalysis.NodesTemperature()CoupleAnalysis.PreAnalysis()CoupleAnalysis.PtsMeanStress()CoupleAnalysis.PtsPos()CoupleAnalysis.PtsShearStrain()CoupleAnalysis.PtsStressYY()CoupleAnalysis.PtsTemperature()CoupleAnalysis.PtsTemperatureRemapped()CoupleAnalysis.Run()CoupleAnalysis.RunPthread()CoupleAnalysis.USLCoupleAnalysis.__init__()CoupleAnalysis.addMats()CoupleAnalysis.addShapes()CoupleAnalysis.contactengineCoupleAnalysis.demstepCoupleAnalysis.dtCoupleAnalysis.getElements()CoupleAnalysis.getNodeById()CoupleAnalysis.getNodes()CoupleAnalysis.getNonrPts()CoupleAnalysis.getNonrigidPts()CoupleAnalysis.getParById()CoupleAnalysis.getRigidPts()CoupleAnalysis.getShapeReactForce()CoupleAnalysis.getThermalCriticalTimeStep()CoupleAnalysis.getTimeStep()CoupleAnalysis.getTrElements()CoupleAnalysis.getTrNodes()CoupleAnalysis.godemCoupleAnalysis.godemMatIndexCoupleAnalysis.gridCoupleAnalysis.hooksCoupleAnalysis.isRunning()CoupleAnalysis.iter()CoupleAnalysis.loadingRVEsfromGeodata()CoupleAnalysis.loadingRVEsfromRVEfile()CoupleAnalysis.mapOnceCoupleAnalysis.matsCoupleAnalysis.meltingTsCoupleAnalysis.nrptsCoupleAnalysis.pause()CoupleAnalysis.printNodesTemperature()CoupleAnalysis.printSimTypeMasks()CoupleAnalysis.ptresetCoupleAnalysis.ptresetperiodCoupleAnalysis.ptresetrvefileCoupleAnalysis.ptresetsamerveCoupleAnalysis.ptresetstrainCoupleAnalysis.rigidptsCoupleAnalysis.sdfengineCoupleAnalysis.setGeostaticData()CoupleAnalysis.setHigherPicOrder()CoupleAnalysis.setMethod()CoupleAnalysis.setNumThreads()CoupleAnalysis.setPicEngineIterperiod()CoupleAnalysis.setRvePath()CoupleAnalysis.setTimeDt()CoupleAnalysis.shapesCoupleAnalysis.simTypeMasksCoupleAnalysis.speed()CoupleAnalysis.splitptsCoupleAnalysis.trgridCoupleAnalysis.useContact()CoupleAnalysis.useNFGrid()CoupleAnalysis.usePtSplit()CoupleAnalysis.useSDF()CoupleAnalysis.writer
SIMTYPEMASKCOUPLESIMTYPEMASKCOUPLE.BONDMODELSIMTYPEMASKCOUPLE.BONDPLASTICSIMTYPEMASKCOUPLE.DEMCONDUCTSIMTYPEMASKCOUPLE.HEATGENSIMTYPEMASKCOUPLE.HYPOMANALSIMTYPEMASKCOUPLE.MANALSIMTYPEMASKCOUPLE.NONSPHMANALSIMTYPEMASKCOUPLE.PHASEANALSIMTYPEMASKCOUPLE.TANALSIMTYPEMASKCOUPLE.THERMALEXPSIMTYPEMASKCOUPLE.__init__()SIMTYPEMASKCOUPLE.name