SEMAFORInformatik / femagtools

Python API for FEMAG
BSD 2-Clause "Simplified" License
20 stars 15 forks source link

Consider magnet material in parameter-variation properly #54

Closed sasrigais closed 4 years ago

sasrigais commented 4 years ago

The Grid class does not consider the magnet properties passed by the magnets parameter during initialisation.

The calls to builder.create_model in Grid.setup_model and Grid.__call__ need self.femag.magnets as second parameter to fix that issue. If that second parameter is missing, builder.create_magnet, wich is called by builder.create_model, will use the default values m.remanenc = 1.2 and m.relperm = 1.05

121 f.write('\n'.join(builder.create_model(model, self.femag.magnets) +

247 builder.create_model(model, self.femag.magnets) +