Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/Addition to calculation functions #31

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

sschachten
Copy link
Collaborator

  • added function to calc amplitude of permittivity (like amplitude of p…ermeability)

  • updated variable name for function calc_electric_flux_density_based_on_current_array_and_time_array for better consistency

…ermeability)

updated variable name for function calc_electric_flux_density_based_on_current_array_and_time_array for better consistency
@@ -1791,6 +1790,21 @@ def eps_phi_deg__from_eps_r_and_p_eddy(frequency: np.ndarray | float, e_peak: np
:return: angle of permittivity in degree
"""
return np.rad2deg(np.arcsin(p_eddy / (np.pi * frequency * eps_r * epsilon_0 * np.array(e_peak) ** 2)))


def calc_eps_r_from_d_and_e_array(d: np.ndarray | list, e: np.ndarray | list):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return datatype missing

@@ -1745,20 +1745,19 @@ def calc_electric_flux_density_based_on_current_array_and_frequency(current: np.
return electric_flux_density


def calc_electric_flux_density_based_on_current_array_and_time_array(current_array: np.ndarray | list, time: np.ndarray | list,
cross_section: float = 1.0):
def calc_electric_flux_density_based_on_current_array_and_time_array(current: np.ndarray | list, time: np.ndarray | list, cross_section: float = 1.0):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return datatype missing

@gituser789 gituser789 merged commit eb7c211 into main Jan 30, 2025
2 checks passed
@sschachten sschachten deleted the calc_function_addition_update branch January 31, 2025 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants