java.lang.Object
simpa.core.api.BoundarySurface
Describes the surface that is bounding the volume of interest where the field
should be reproduced by the sources. This class holds a list of
SurfacePoint
and provides reading and writing them to a file.-
Constructor Summary
ConstructorsConstructorDescriptionBoundarySurface
(ArrayList<SurfacePoint> surfacePoints) Creates a BoundarySurface object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setFieldFromFile
(String filename, double fieldScalingFactor, LengthUnit unit) Gets an electromagnetic field from a txt filevoid
sourcesToFile
(String solFile) Writes the sources to a file.void
surfacePointCoordinatesToFile
(String name, LengthUnit unit, OutputFileFormat off) Writes the surface points to a text file.
-
Constructor Details
-
BoundarySurface
Creates a BoundarySurface object.- Parameters:
surfacePoints
- the surface points that make up the boundary surface of the volume.
-
-
Method Details
-
surfacePointCoordinatesToFile
Writes the surface points to a text file.- Parameters:
name
- name for the output file.unit
- LengthUnit for the output.off
- output file format, will add a header if OPERA3D is chosen.
-
setFieldFromFile
public void setFieldFromFile(String filename, double fieldScalingFactor, LengthUnit unit) throws PositionMismatchException Gets an electromagnetic field from a txt file- Parameters:
filename
- - File contining the positions and the fields.fieldScalingFactor
- - To scale the fieldunit
- - The length unit in which the positions are given- Throws:
PositionMismatchException
- when a point is not at the expected place.
-
sourcesToFile
Writes the sources to a file.- Parameters:
solFile
- solution file
-
surfacePointsToString
-