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()doubleorg.apache.commons.math3.geometry.euclidean.threed.Vector3DgetField(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.Vector3DFor debugging purposesvoidscale(double scalingFactor) Multiplies the strength of this source with the given scaling factorvoidsetCharge(double charge) voidsetLocation(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:
copyin 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:PointSourceFor debugging purposes- Specified by:
getLocationin 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:PointSourceMultiplies the strength of this source with the given scaling factor- Specified by:
scalein 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:
getFieldin interfacePointSource- Parameters:
evp- Evaluation point- Returns:
- E field
-