enable_harmonic_force#

Maxwell3d.enable_harmonic_force(assignment, force_type=0, window_function='Rectangular', use_number_of_last_cycles=True, last_cycles_number=1, calculate_force='Harmonic')[source]#

Enable the harmonic force calculation for the transient analysis.

Parameters:
assignmentlist

List of object names for force calculations.

force_typeint, optional

Force type. Options are 0 for objects, 1 for surface, and 2 for volumetric.

window_functionstr, optional

Windowing function. Default is "Rectangular". Available options are: "Rectangular", "Tri", "Van Hann", "Hamming", "Blackman", "Lanczos", "Welch".

use_number_of_last_cyclesbool, optional

Use number of last cycles for force calculations. Default is True.

last_cycles_numberint, optional

Defines the number of cycles to compute if use_number_of_last_cycle is True.

calculate_forcesr, optional

How to calculate force. The default is "Harmonic". Options are "Harmonic" and "Transient".

Returns:
bool

True when successful, False when failed.