java.lang.Object
simpa.core.api.ElectricMonopole
- All Implemented Interfaces:
PointSource
Point source that is outside the volume that is used to reproduce the
electric field inside the volume of interest.
-
Constructor Summary
ConstructorsConstructorDescriptionElectricMonopole
(org.apache.commons.math3.geometry.euclidean.threed.Vector3D locaton, double charge) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
double
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
getField
(org.apache.commons.math3.geometry.euclidean.threed.Vector3D evp) Calculates the E field at a given evaluation point.org.apache.commons.math3.geometry.euclidean.threed.Vector3D
For debugging purposesvoid
scale
(double scalingFactor) Multiplies the strength of this source with the given scaling factorvoid
setCharge
(double charge) void
setLocation
(org.apache.commons.math3.geometry.euclidean.threed.Vector3D locaton) toString()
-
Constructor Details
-
ElectricMonopole
public ElectricMonopole(org.apache.commons.math3.geometry.euclidean.threed.Vector3D locaton, double charge)
-
-
Method Details
-
copy
- Specified by:
copy
in interfacePointSource
- Returns:
- Shallow copy, except the currents which is native, so deep.
-
getLocation
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocation()Description copied from interface:PointSource
For debugging purposes- Specified by:
getLocation
in interfacePointSource
- Returns:
- the location of the source
-
setLocation
public void setLocation(org.apache.commons.math3.geometry.euclidean.threed.Vector3D locaton) -
getCharge
public double getCharge() -
setCharge
public void setCharge(double charge) -
scale
public void scale(double scalingFactor) Description copied from interface:PointSource
Multiplies the strength of this source with the given scaling factor- Specified by:
scale
in interfacePointSource
- Parameters:
scalingFactor
- -A scaling factor
-
toString
-
getField
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getField(org.apache.commons.math3.geometry.euclidean.threed.Vector3D evp) Calculates the E field at a given evaluation point.- Specified by:
getField
in interfacePointSource
- Parameters:
evp
- Evaluation point- Returns:
- E field
-