Python Interface
- Install
- Install Python Extensions Automatically
- Methods
- Quick Start
- Customize Install
- Typical Customization Cases
- Q: I don’t want
update_openEMS.shto create a newvenvfor me, because I have my own. - Q: I want to create a new
venv, but not under the/venvsubdirectory of openEMS. - Q: All system packages are invisible in the Python
venv. I don’t want to reinstall them viapip3for thevenv, I want to use the existing system Python packages. - Q: I don’t want
./update_openEMS.shto download dependencies usingpip3because I don’t have Internet access. - Q: I don’t want to use
pip3to manage Python package dependencies, I want to use my system’s own package manager. - Q: I have Internet access, but behind a proxy.
- Q: I have Internet access, but behind an HTTP proxy.
- Q: I have Internet access, but behind a SOCKS proxy.
- Q: I don’t want to use a Python
venvat all, I want to install Python extensions to the default paths, which is the legacy behavior in previous openEMS versions. - Q:
./update_openEMS.shis a black box, I need explicit control over the installation.
- Q: I don’t want
- Install Python Extensions Manually
- Install Python Extensions Automatically
- CSXCAD Python Interface
- CSXCAD
ContinuousStructureContinuousStructure.AddAbsorbingBC()ContinuousStructure.AddConductingSheet()ContinuousStructure.AddDump()ContinuousStructure.AddExcitation()ContinuousStructure.AddLumpedElement()ContinuousStructure.AddMaterial()ContinuousStructure.AddMetal()ContinuousStructure.AddProbe()ContinuousStructure.AddProperty()ContinuousStructure.Clear()ContinuousStructure.DefineGrid()ContinuousStructure.DeleteProperty()ContinuousStructure.GetAllPrimitives()ContinuousStructure.GetAllProperties()ContinuousStructure.GetCoordInputType()ContinuousStructure.GetGrid()ContinuousStructure.GetParameterSet()ContinuousStructure.GetPropertiesByName()ContinuousStructure.GetProperty()ContinuousStructure.GetPropertyByCoordPriority()ContinuousStructure.GetPropertyByType()ContinuousStructure.GetQtyPrimitives()ContinuousStructure.GetQtyProperties()ContinuousStructure.ReadFromXML()ContinuousStructure.RemoveProperty()ContinuousStructure.Reset()ContinuousStructure.SetMeshType()ContinuousStructure.Update()ContinuousStructure.Write2XML()ContinuousStructure.grid
- CSProperties
- Notes
- Examples
- CSProperties (Base Class)
CSPropertiesCSProperties.AddAttribute()CSProperties.AddBox()CSProperties.AddCurve()CSProperties.AddCylinder()CSProperties.AddCylindricalShell()CSProperties.AddLinPoly()CSProperties.AddPoint()CSProperties.AddPolygon()CSProperties.AddPolyhedron()CSProperties.AddPolyhedronReader()CSProperties.AddRotPoly()CSProperties.AddSphere()CSProperties.AddSphericalShell()CSProperties.AddWire()CSProperties.ExistAttribute()CSProperties.GetAttributeValue()CSProperties.GetCopy()CSProperties.GetEdgeColor()CSProperties.GetFillColor()CSProperties.GetName()CSProperties.GetParameterSet()CSProperties.GetQtyPrimitives()CSProperties.GetType()CSProperties.GetTypeString()CSProperties.RemoveAttribute()CSProperties.SetAttributeValue()CSProperties.SetColor()CSProperties.SetEdgeColor()CSProperties.SetFillColor()CSProperties.SetName()CSProperties.copy()CSProperties.fromType()CSProperties.fromTypeName()
- CSPropMaterial
- CSPropLumpedElement
CSPropLumpedElementCSPropLumpedElement.GetCapacity()CSPropLumpedElement.GetCaps()CSPropLumpedElement.GetDirection()CSPropLumpedElement.GetInductance()CSPropLumpedElement.GetLEtype()CSPropLumpedElement.GetResistance()CSPropLumpedElement.SetCapacity()CSPropLumpedElement.SetCaps()CSPropLumpedElement.SetDirection()CSPropLumpedElement.SetInductance()CSPropLumpedElement.SetLEtype()CSPropLumpedElement.SetResistance()
- CSPropMetal
- CSPropConductingSheet
- CSPropExcitation
CSPropExcitationCSPropExcitation.GetDelay()CSPropExcitation.GetEnabled()CSPropExcitation.GetExcitType()CSPropExcitation.GetExcitation()CSPropExcitation.GetFrequency()CSPropExcitation.GetPropagationDir()CSPropExcitation.GetWeightFunction()CSPropExcitation.SetDelay()CSPropExcitation.SetEnabled()CSPropExcitation.SetExcitType()CSPropExcitation.SetExcitation()CSPropExcitation.SetFrequency()CSPropExcitation.SetPropagationDir()CSPropExcitation.SetWeightFunction()
- CSPropProbeBox
CSPropProbeBoxCSPropProbeBox.AddFrequency()CSPropProbeBox.ClearFrequency()CSPropProbeBox.GetFrequency()CSPropProbeBox.GetFrequencyCount()CSPropProbeBox.GetNormalDir()CSPropProbeBox.GetProbeType()CSPropProbeBox.GetWeighting()CSPropProbeBox.SetFrequency()CSPropProbeBox.SetModeFunction()CSPropProbeBox.SetNormalDir()CSPropProbeBox.SetProbeType()CSPropProbeBox.SetWeighting()
- CSPropDumpBox
- CSPrimitives
- Notes
- Examples
- CSPrimitives (Base Class)
CSPrimitivesCSPrimitives.AddTransform()CSPrimitives.GetBoundBox()CSPrimitives.GetCoordinateSystem()CSPrimitives.GetDimension()CSPrimitives.GetID()CSPrimitives.GetParameterSet()CSPrimitives.GetPrimitiveUsed()CSPrimitives.GetPriority()CSPrimitives.GetProperty()CSPrimitives.GetTransform()CSPrimitives.GetType()CSPrimitives.GetTypeName()CSPrimitives.HasTransform()CSPrimitives.IsInside()CSPrimitives.SetCoordinateSystem()CSPrimitives.SetPrimitiveUsed()CSPrimitives.SetPriority()CSPrimitives.Update()CSPrimitives.fromType()
- CSPrimPoint
- CSPrimBox
- CSPrimCylinder
- CSPrimCylindricalShell
- CSPrimSphere
- CSPrimSphericalShell
- CSPrimPolygon
- CSPrimLinPoly
- CSPrimRotPoly
- CSPrimCurve
- CSPrimWire
- CSPrimPolyhedron
- CSPrimPolyhedronReader
- CSTransform
CSTransformCSTransform.AddTransform()CSTransform.GetMatrix()CSTransform.HasTransform()CSTransform.Reset()CSTransform.RotateAxis()CSTransform.RotateOrigin()CSTransform.Scale()CSTransform.SetMatrix()CSTransform.SetPostMultiply()CSTransform.SetPreMultiply()CSTransform.Transform()CSTransform.Translate()
- CSRectGrid
CSRectGridCSRectGrid.AddLine()CSRectGrid.Clear()CSRectGrid.ClearLines()CSRectGrid.GetDeltaUnit()CSRectGrid.GetLine()CSRectGrid.GetLines()CSRectGrid.GetMeshType()CSRectGrid.GetQtyLines()CSRectGrid.GetSimArea()CSRectGrid.IsValid()CSRectGrid.SetDeltaUnit()CSRectGrid.SetLines()CSRectGrid.SetMeshType()CSRectGrid.SmoothMeshLines()CSRectGrid.Snap2LineNumber()CSRectGrid.Sort()
CoordinateSystem
- Mesh
- Utilities
- CSXCAD
- openEMS Python Interface
- openEMS
openEMSopenEMS.AddEdges2Grid()openEMS.AddLumpedPort()openEMS.AddMSLPort()openEMS.AddRectWaveGuidePort()openEMS.AddWaveGuidePort()openEMS.CreateNF2FFBox()openEMS.GetCSX()openEMS.ReadFromXML()openEMS.Reset()openEMS.Run()openEMS.SetAbort()openEMS.SetBoundaryCond()openEMS.SetCSX()openEMS.SetCellConstantMaterial()openEMS.SetCoordSystem()openEMS.SetCustomExcite()openEMS.SetCylinderCoords()openEMS.SetDiracExcite()openEMS.SetEndCriteria()openEMS.SetGaussExcite()openEMS.SetMaxTime()openEMS.SetMultiGrid()openEMS.SetNumberOfTimeSteps()openEMS.SetOverSampling()openEMS.SetSinusExcite()openEMS.SetStepExcite()openEMS.SetTimeStep()openEMS.SetTimeStepFactor()openEMS.SetTimeStepMethod()openEMS.WelcomeScreen()openEMS.Write2XML()
- Ports
- NF2FF
- openEMS