-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added additional enumerations for datasheet plots and json-file keys
created new script to create empty material place in database
- Loading branch information
Sebastian Schachten
committed
Nov 5, 2024
1 parent
d37dc51
commit b9b2446
Showing
3 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
materialdatabase/scripts/create_empty_material_in_database.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Script to create empty material in database.""" | ||
from materialdatabase.material_data_base_classes import * | ||
|
||
|
||
# Control | ||
WRITE = True | ||
|
||
# Set parameters | ||
material_name = Material._3F4 | ||
manufacturer = Manufacturer.Ferroxcube | ||
initial_permeability = 2300 | ||
resistivity = 5 | ||
max_flux_density = 0.47 | ||
volumetric_mass_density = 4800 | ||
|
||
|
||
if WRITE: | ||
create_empty_material(material_name=material_name, manufacturer=manufacturer, initial_permeability=initial_permeability, resistivity=resistivity, | ||
max_flux_density=max_flux_density, volumetric_mass_density=volumetric_mass_density) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters