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 SummaryConstructorsConstructorDescriptionElectricMonopole(org.apache.commons.math3.geometry.euclidean.threed.Vector3D locaton, double charge) 
- 
Method SummaryModifier 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- 
ElectricMonopolepublic ElectricMonopole(org.apache.commons.math3.geometry.euclidean.threed.Vector3D locaton, double charge) 
 
- 
- 
Method Details- 
copy- Specified by:
- copyin interface- PointSource
- Returns:
- Shallow copy, except the currents which is native, so deep.
 
- 
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 locaton) 
- 
getChargepublic double getCharge()
- 
setChargepublic void setCharge(double charge) 
- 
scalepublic void scale(double scalingFactor) Description copied from interface:PointSourceMultiplies the strength of this source with the given scaling factor- Specified by:
- scalein interface- PointSource
- Parameters:
- scalingFactor- -A scaling factor
 
- 
toString
- 
getFieldpublic 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 interface- PointSource
- Parameters:
- evp- Evaluation point
- Returns:
- E field
 
 
-