java.lang.Object
simpa.core.api.CurrentPointSource
- All Implemented Interfaces:
- PointSource
A point source that is outside the volume used to reproduce the B field
 inside the volume of interest.
- 
Constructor SummaryConstructorsConstructorDescriptionCurrentPointSource(org.apache.commons.math3.geometry.euclidean.threed.Vector3D loc) 
- 
Method SummaryModifier and TypeMethodDescriptioncopy()org.apache.commons.math3.geometry.euclidean.threed.Vector3Dorg.apache.commons.math3.geometry.euclidean.threed.Vector3DgetField(org.apache.commons.math3.geometry.euclidean.threed.Vector3D evp) Calculates the B field at a given evaluation point.org.apache.commons.math3.geometry.euclidean.threed.Vector3Dorg.apache.commons.math3.geometry.euclidean.threed.Vector3Dorg.apache.commons.math3.geometry.euclidean.threed.Vector3Dorg.apache.commons.math3.geometry.euclidean.threed.Vector3Dorg.apache.commons.math3.geometry.euclidean.threed.Vector3DFor debugging purposesdoubleprojectToLocalX(org.apache.commons.math3.geometry.euclidean.threed.Vector3D b) Projects the given Vector point to the x-axis.doubleprojectToLocalY(org.apache.commons.math3.geometry.euclidean.threed.Vector3D b) Projects the given Vector point to the y-axis.doubleprojectToLocalZ(org.apache.commons.math3.geometry.euclidean.threed.Vector3D b) Projects the given Vector point to the z-axis.voidscale(double scalingFactor) Scales the currents of the point source using a scaling factor.voidsetBaseVectors(org.apache.commons.math3.geometry.euclidean.threed.Vector3D localX, org.apache.commons.math3.geometry.euclidean.threed.Vector3D localY, org.apache.commons.math3.geometry.euclidean.threed.Vector3D localZ) Set all the base vectors for the CurrentPointSource.voidsetLocalCurrentComponents(double i1, double i2, double i3) Set the components of the currents in the local frame.voidsetLocation(org.apache.commons.math3.geometry.euclidean.threed.Vector3D loc) toString()
- 
Constructor Details- 
CurrentPointSourcepublic CurrentPointSource(org.apache.commons.math3.geometry.euclidean.threed.Vector3D loc) 
 
- 
- 
Method Details- 
copy- Specified by:
- copyin interface- PointSource
- Returns:
- Shallow copy, except the currents which is native, so deep.
 
- 
setBaseVectorspublic void setBaseVectors(org.apache.commons.math3.geometry.euclidean.threed.Vector3D localX, org.apache.commons.math3.geometry.euclidean.threed.Vector3D localY, org.apache.commons.math3.geometry.euclidean.threed.Vector3D localZ) Set all the base vectors for the CurrentPointSource.- Parameters:
- localX- - the local x location.
- localY- - the local y location.
- localZ- - the local z location.
 
- 
getLocalXpublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocalX()
- 
getLocalYpublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocalY()
- 
getLocalZpublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocalZ()
- 
projectToLocalXpublic double projectToLocalX(org.apache.commons.math3.geometry.euclidean.threed.Vector3D b) Projects the given Vector point to the x-axis.- Parameters:
- b- vector to use in projection
- Returns:
- the dot product of the x-axis and the input vector.
 
- 
projectToLocalYpublic double projectToLocalY(org.apache.commons.math3.geometry.euclidean.threed.Vector3D b) Projects the given Vector point to the y-axis.- Parameters:
- b- vector to use in projection
- Returns:
- the dot product of the y-axis and the input vector.
 
- 
projectToLocalZpublic double projectToLocalZ(org.apache.commons.math3.geometry.euclidean.threed.Vector3D b) Projects the given Vector point to the z-axis.- Parameters:
- b- vector to use in projection
- Returns:
- the dot product of the z-axis and the input vector.
 
- 
toString
- 
getCurrentpublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getCurrent()- Returns:
- The current in the global coordinate system.
 
- 
getLocalCurrentComponentspublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocalCurrentComponents()
- 
setLocalCurrentComponentspublic void setLocalCurrentComponents(double i1, double i2, double i3) Set the components of the currents in the local frame.- Parameters:
- i1- Current in the direction of local X.
- i2- Current in the direction of local Y.
- i3- Current in the direction of local Z.
 
- 
scalepublic void scale(double scalingFactor) Scales the currents of the point source using a scaling factor.- Specified by:
- scalein interface- PointSource
- Parameters:
- scalingFactor- factor to scale with.
 
- 
getLocationpublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocation()Description copied from interface:PointSourceFor debugging purposes- Specified by:
- getLocationin interface- PointSource
- Returns:
- the location of the source
 
- 
setLocationpublic void setLocation(org.apache.commons.math3.geometry.euclidean.threed.Vector3D loc) 
- 
getFieldpublic org.apache.commons.math3.geometry.euclidean.threed.Vector3D getField(org.apache.commons.math3.geometry.euclidean.threed.Vector3D evp) Calculates the B field at a given evaluation point.- Specified by:
- getFieldin interface- PointSource
- Parameters:
- evp- evaluation point
- Returns:
- B field
 
 
-