simpeg.electromagnetics.frequency_domain.Fields3DElectricField#
- class simpeg.electromagnetics.frequency_domain.Fields3DElectricField(simulation)[source]#
Bases:
FieldsFDEMFields class for storing 3D total electric field solutions.
This class stores the total electric field solution computed using a
frequency_domain.Simulation3DElectricFieldsimulation object. This class can be used to extract the following quantities:'e','ePrimary','eSecondary'and'j'on mesh edges.'h','b','bPrimary'and'bSecondary'on mesh faces.'charge'on mesh nodes.'charge_density'at cell centers.
See the example below to learn how fields can be extracted from a
Fields3DElectricFieldobject.- Parameters:
- simulation
frequency_domain.Simulation3DElectricField The FDEM simulation object associated with the fields.
- simulation
Attributes
The aliased fields of the object.
Approximate cost of storing all of the known fields in MB.
Python data type(s) used to store the fields.
The field solutions and where they are discretized on the mesh.
Mesh used by the simulation.
The simulation object used to compute the field solution.
Survey used by the simulation.
Methods
startup()Run startup to connect the simulation's discrete attributes to the fields object.
Examples
The
Fields3DElectricFieldobject stores the total electric field solution on mesh edges. To extract the discrete electric fields and magnetic flux densities for all sources:f = simulation.fields(m) e = f[:, 'e'] b = f[:, 'b']
The array
ereturned will have shape (n_edges, n_sources). And the arraybreturned will have shape (n_faces, n_sources). We can also extract the fields for a subset of the source list used for the simulation as follows:f = simulation.fields(m) e = f[source_list,'e'] b = f[source_list,'b']