java.lang.Object
simpa.core.api.TilingConfig
Object that holds the configuration for tiling.
-
Constructor Summary
ConstructorsConstructorDescriptionTilingConfig
(String name, Profile profile, List<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> path, LengthUnit lengthUnit, double elevation, OutputFileFormat outputFileFormat, double fieldScalingFactor, FieldType fieldType) Construct a config for tiling. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the elevation of the surface points.double
Gets the scaling factor of the field in this tiling config.Gets the type of field used in this tiling config.Gets the length unit to be used for the diagnostic files.getName()
Gets the name of the magnet.Gets the output file format used in this TilingConfig.List
<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> getPath()
Gets the path in [meters].void
setElevation
(double elevation) Sets the elevation of the surface points.void
setFieldScalingFactor
(double fieldScalingFactor) Method used for setting or updating the scaling factor used inTiling
objects implementing this TilingConfig.void
setFieldType
(FieldType fieldType) Method used for setting or updating the field type used inTiling
objects implementing this TilingConfig.void
setLengthUnit
(LengthUnit lengthUnit) Sets the length unit to be used for the diagnostic files.void
Sets the name of the magnet.void
setOutputFileFormat
(OutputFileFormat outputFileFormat) Method used for setting or updating the outputFileFormat used inTiling
objects implementing this TilingConfig.void
Sets the path.void
setQuadrature
(Quadrature quadrature) Sets the type of quadrature to be used for the tiling.
-
Constructor Details
-
TilingConfig
public TilingConfig(String name, Profile profile, List<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> path, LengthUnit lengthUnit, double elevation, OutputFileFormat outputFileFormat, double fieldScalingFactor, FieldType fieldType) Construct a config for tiling.- Parameters:
name
- Name of the tiling.profile
- Profile to use in the tiling.path
- Path around which to construct the tiling.lengthUnit
- LengthUnit of the path.elevation
- Elevation of the element.outputFileFormat
- The format of the output file.fieldScalingFactor
- The scaling factor for the field.fieldType
- The type of field in the element.
-
-
Method Details
-
getName
Gets the name of the magnet. All files created during the tiling will be named with this name and some extension according to the content of the file.- Returns:
- name of the magnet
- Throws:
NotSetException
- when the name of the magnet is not yet set
-
getProfile
- Returns:
- Profile which is extruded along the path to make a surface.
- Throws:
NotSetException
- when the profile is not set
-
setName
Sets the name of the magnet. All files created during the tiling will be named with this name and some extension according to the content of the file.- Parameters:
name
- name to set
-
getPath
public List<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> getPath() throws NotSetExceptionGets the path in [meters]. The boundary surface of the magnet to be tiled is an extrusion of a rectangular profile along the curve.- Returns:
- -path
- Throws:
NotSetException
- when the path is not yet set
-
setPath
Sets the path. It should be given in [meters]. The boundary surface of the magnet to be tiled is an extrusion of a rectangular profile along the curve.- Parameters:
path
- list of vectors
-
getLengthUnit
Gets the length unit to be used for the diagnostic files.- Returns:
- Length unit.
- Throws:
NotSetException
- when the length unit is not yet set.
-
setLengthUnit
Sets the length unit to be used for the diagnostic files.- Parameters:
lengthUnit
- The length unit.
-
getElevation
public double getElevation()Gets the elevation of the surface points. This determines what distance the source monopoles will be placed from the tile.- Returns:
- the elevation
-
setElevation
public void setElevation(double elevation) Sets the elevation of the surface points. This determines what distance the source monopoles will be placed from the tile.- Parameters:
elevation
- elevation of the surface points
-
getOutputFileFormat
Gets the output file format used in this TilingConfig.- Returns:
- output file format.
-
setOutputFileFormat
Method used for setting or updating the outputFileFormat used inTiling
objects implementing this TilingConfig.- Parameters:
outputFileFormat
- output file format.
-
getFieldType
Gets the type of field used in this tiling config.- Returns:
- the type of field.
-
setFieldType
Method used for setting or updating the field type used inTiling
objects implementing this TilingConfig.- Parameters:
fieldType
- the type of field.
-
getFieldScalingFactor
public double getFieldScalingFactor()Gets the scaling factor of the field in this tiling config.- Returns:
- scaling factor.
-
setFieldScalingFactor
public void setFieldScalingFactor(double fieldScalingFactor) Method used for setting or updating the scaling factor used inTiling
objects implementing this TilingConfig.- Parameters:
fieldScalingFactor
- the scaling factor to update to.
-
getQuadrature
- Returns:
- The type of quadrature to be used for the tiling. The
SurfacePoint
instances will be placed on the quadratura points on the surface tiles.
-
setQuadrature
Sets the type of quadrature to be used for the tiling.- Parameters:
quadrature
-
-