@@ -26,15 +26,15 @@ This results to the following code:
2626 import femmt as fmt
2727
2828 geo = fmt.MagneticComponent(simulation_type = fmt.SimulationType.FreqDomain,
29- component_type = fmt.ComponentType.Transformer, working_directory = working_directory,
30- verbosity = fmt.Verbosity.ToConsole, is_gui = is_test )
29+ component_type = fmt.ComponentType.Transformer, working_directory = working_directory,
30+ onelab_verbosity = fmt.Verbosity.ToConsole)
3131
3232 The ``simulation_type `` specifies the type of simulation to be performed.
3333
3434- If set to ``FreqDomain ``, indicating a frequency domain simulation.
3535- If set to ``TimeDomain ``, indicating a time domain simulations.
3636
37- The ``Verbosity `` controls the level of detail in the output.
37+ The ``onelab_verbosity `` controls the level of the FEM simulation software `` Onelab `` details in the output.
3838
3939- If set to ``ToConsole ``, all output messages are shown in the commend line .
4040- If set to ``ToFile ``, all output messages are written to files.
@@ -81,16 +81,15 @@ Now the core object can be created and added to the model (geo object)
8181 window_h = core_db[" window_h" ],
8282 core_h = core_db[" core_h" ])
8383
84- core = fmt.Core(core_type = fmt.CoreType.Single,
84+ core_material = fmt.ImportedComplexCoreMaterial(material = fmt.Material.N49,
85+ temperature = 45 ,
86+ permeability_datasource = fmt.DataSource.TDK_MDT ,
87+ permittivity_datasource = fmt.DataSource.LEA_MTB )
88+
89+ core = fmt.Core(material = core_material,
90+ core_type = fmt.CoreType.Single,
8591 core_dimensions = core_dimensions,
86- detailed_core_model = False ,
87- material = mdb.Material.N49, temperature = 45 , frequency = inductor_frequency,
88- permeability_datasource = fmt.MaterialDataSource.Measurement,
89- permeability_datatype = fmt.MeasurementDataType.ComplexPermeability,
90- permeability_measurement_setup = mdb.MeasurementSetup.LEA_LK ,
91- permittivity_datasource = fmt.MaterialDataSource.Measurement,
92- permittivity_datatype = fmt.MeasurementDataType.ComplexPermittivity,
93- permittivity_measurement_setup = mdb.MeasurementSetup.LEA_LK , mdb_verbosity = fmt.Verbosity.Silent)
92+ detailed_core_model = False )
9493 geo.set_core(core)
9594
9695 Material database
@@ -351,7 +350,7 @@ To create a conductor have a look at the following code example:
351350
352351.. code :: python
353352
354- winding1 = fmt.Conductor(winding_number = 0 , conductivity = fmt.Conductivity .Copper)
353+ winding1 = fmt.Conductor(winding_number = 0 , conductivity = fmt.ConductorMaterial .Copper)
355354 winding1.set_solid_round_conductor(conductor_radius = 0.0011 , conductor_arrangement = fmt.ConductorArrangement.Square)
356355
357356 Add conductors to virtual winding windows
0 commit comments