Energy
EnergyCompute
Energy density in [J/m^3] computing functions
Source code in cmtj/utils/energy.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
__init__(cell_surface, thickness, log)
Initialise energy computation class
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell_surface |
float
|
surface of the cell in [m^2] |
required |
thickness |
float
|
thickness of the cell in [m] |
required |
log |
Dict[str, List[float]]
|
log of the simulation (directly from .getLog()) |
required |
Source code in cmtj/utils/energy.py
9 10 11 12 13 14 15 16 17 18 |
|
calculate_energy_from_field(m, field_vector)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
m |
np.ndarray
|
magnetisation |
required |
field_vector |
np.ndarray
|
magnetic field vector (can be external, Oersted etc.) Compute generic energy density E = H * (mi0 Ms/V) where mi0 Ms is in [T], Ms in [A/m], H in [A/m] |
required |
Source code in cmtj/utils/energy.py
51 52 53 54 55 56 57 58 59 60 |
|
calculate_energy_from_field_interfacial(m, field_vector)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
m |
np.ndarray
|
magnetisation |
required |
field_vector |
np.ndarray
|
magnetic field vector (can be IEC etc.) Compute generic energy density E = H * (mi0 Ms/A) where mi0 Ms is in [T], Ms in [A/m], H in [A/m] |
required |
Source code in cmtj/utils/energy.py
62 63 64 65 66 67 68 69 70 71 |
|
compute_from_log()
Computes a log of energies over time and returns it in the same form of the
Source code in cmtj/utils/energy.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|