CSXCAD
- class CSXCAD.ContinuousStructure
With this class different properties and primitives can be created and a rectengular grid assigned.
Examples
Create a metal box:
>>> CSX = CSXCAD.ContinuousStructure() >>> metal = CSX.AddMetal('metal') # create a metal property with name "metal" >>> start = [0,0,0] >>> stop = [1,2,1] >>> box = metal.AddBox(start, stop) # Assign a box to propety "metal"
- AddConductingSheet(name, **kw)
Add a conducting sheet with name name.
- AddDump(name, **kw)
Add a dump property with name name.
See also
- AddExcitation(name, exc_type, exc_val, **kw)
Add an excitation property with name name.
See also
- AddLumpedElement(name, **kw)
Add a lumped element with name name.
- AddMaterial(name, **kw)
Add a material property with name name.
See also
- AddMetal(name)
Add a metal property with name name.
See also
- AddProbe(name, p_type, **kw)
Add a probe property with name name.
See also
- AddProperty(prop)
Add an already created property (prop) to this class.
Notes
This class will take ownership of the property.
- DefineGrid(mesh, unit, smooth_mesh_res=None)
Assign a mesh lines to the grid assigned to this property.
- Parameters:
mesh – (3,) list of mesh lines
unit – float – drawing unit
smooth_mesh_res – an optional mesh smoothing
- GetAllPrimitives(sort, prop_type)
Get a list of all primitives.
- GetAllProperties()
Get a list of all properties
- GetGrid()
Get the CSRectGrid assigned to this class.
See also
- GetParameterSet()
Get the parameter set assigned to this class
- GetPropertiesByName(name)
Get all the property specifed by their name
- GetProperty(index)
Get the property at the given index
See also
CSXCAD.GetQtyProperties
- GetPropertyByCoordPriority(coord, prop_type=None, markFoundAsUsed=False)
- GetPropertyByType(prop_type)
Get a list of properties specified by their type
- GetQtyPrimitives()
- GetQtyProperties()
- ReadFromXML(fn)
Read geometry from xml-file
- Parameters:
fn – str – file name
- SetMeshType()
- Update()
- Write2XML(fn)
Write geometry to an xml-file
- Parameters:
fn – str – file name