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

EDB - Load amat material file from Aedt #3713

Merged
merged 36 commits into from
Oct 6, 2023
Merged

Conversation

svandenb-dev
Copy link
Collaborator

Loading amat material in EDB

@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@svandenb-dev svandenb-dev linked an issue Oct 5, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Merging #3713 (55d7f94) into main (554348c) will increase coverage by 0.06%.
Report is 15 commits behind head on main.
The diff coverage is 85.47%.

@@            Coverage Diff             @@
##             main    #3713      +/-   ##
==========================================
+ Coverage   80.96%   81.02%   +0.06%     
==========================================
  Files         178      179       +1     
  Lines       61595    61850     +255     
==========================================
+ Hits        49872    50117     +245     
- Misses      11723    11733      +10     

@@ -788,3 +791,122 @@ def get_property_by_material_name(self, property_name, material_name):
else:
return property_box.ToDouble()
return False

def load_material_from_aedt(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

@svandenb-dev, I suggest to rename the method to

def load_sys_library(self):

@@ -788,3 +791,122 @@ def get_property_by_material_name(self, property_name, material_name):
else:
return property_box.ToDouble()
return False

def load_material_from_aedt(self):
material_dict = self._read_materials()
Copy link
Contributor

Choose a reason for hiding this comment

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

@svandenb-dev please add docstring.

@hui-zhou-a
Copy link
Contributor

@svandenb-dev It will be nice to have a method load() to import .amat file.

maxcapodi78 added 3 commits October 6, 2023 12:34
add_material_from_aedt which expect an aedt material name

load_material_from_amat which load all materials in amat

current limitations:
supports only materials with float value (no nonlinear materials and no formulas)
pyaedt/edb_core/materials.py Outdated Show resolved Hide resolved
@maxcapodi78 maxcapodi78 merged commit a3b3d96 into main Oct 6, 2023
12 checks passed
@maxcapodi78 maxcapodi78 deleted the load_amat_material_file_v2 branch October 6, 2023 19:48
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.

EDB loading AEDT amat file
4 participants