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

Asaf branch #55

Merged
merged 12 commits into from
Oct 23, 2020
Merged

Asaf branch #55

merged 12 commits into from
Oct 23, 2020

Conversation

asafdi
Copy link
Contributor

@asafdi asafdi commented Oct 11, 2020

No description provided.

DanielCohenHillel and others added 12 commits August 16, 2020 18:01
Merge 'master' branch into 'develop' branch
Ideally you wouldn't need to specify if the object is a line/surface/volume, but I didn't found a way to get this from ansys.

Also some formatting fixes.
And again, formatting fixes whenever I see one
Allow for  quantum analysis for only some of the modes which can now be sent as a list
Fix of Q analysis modes update, print of results is still problamatic
allows to print result and print variation to be used togther where the variation to be printed is give by an integer
@zlatko-minev zlatko-minev self-requested a review October 11, 2020 16:35
Copy link
Owner

@zlatko-minev zlatko-minev left a comment

Choose a reason for hiding this comment

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

Assuming you have run this code with a=some ansys analysis to check that it doesn't introduce artifact bugs, im good to merge :) Great job

@@ -304,8 +304,8 @@
}
],
"source": [
"ℰ_total = eprh.calc_energy_electric(volume='AllObjects')\n",
"ℰ_substr = eprh.calc_energy_electric(volume='substrate')\n",
"ℰ_total = eprh.calc_energy_electric(obj='AllObjects')\n",
Copy link
Owner

Choose a reason for hiding this comment

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

Good change

@@ -233,18 +233,18 @@ def setup_data(self):
if not self.data_dir.is_dir():
self.data_dir.mkdir(parents=True, exist_ok=True)

def calc_p_junction_single(self, mode, variation, U_E = None, U_H = None):
def calc_p_junction_single(self, mode, variation, U_E=None, U_H=None):
Copy link
Owner

Choose a reason for hiding this comment

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

Good formatting

'''
This function is used in the case of a single junction only.
For multiple junctions, see `calc_p_junction`.

Assumes no lumped capacitive elements.
'''
if U_E == None:
Copy link
Owner

Choose a reason for hiding this comment

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

Good check update

@@ -592,15 +598,26 @@ def calc_energy_electric(self,
B = vecE.conj()
A = A.dot(B)
A = A.real()
A = A.integrate_vol(name=volume)

if obj_dims == 1:
Copy link
Owner

Choose a reason for hiding this comment

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

Very nice

'''
if volume != 'Deprecated':
logger.warning('The use of the "volume" argument is deprecated... use "obj" instead')
Copy link
Owner

Choose a reason for hiding this comment

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

Very nice

@@ -631,7 +633,14 @@ def analyze_variation(self,
# ensuring proper matrix dimensionality when slicing
junctions = (junctions,) if type(junctions) is int else junctions

modes = list(range(self.n_modes))
if modes is None:
modes = list(range(self.n_modes))
Copy link
Owner

Choose a reason for hiding this comment

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

nice, Long desired update

@@ -645,7 +654,7 @@ def analyze_variation(self,
# Get matrices
PJ, SJ, Om, EJ, PHI_zpf, PJ_cap, n_zpf = self.get_epr_base_matrices(
variation)
freqs_hfss = self.freqs_hfss[variation].values
freqs_hfss = self.freqs_hfss[variation].values[(modes)]
Copy link
Owner

Choose a reason for hiding this comment

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

Not sure why brackets parans here arround modes

@asafdi
Copy link
Contributor Author

asafdi commented Oct 12, 2020 via email

@zlatko-minev zlatko-minev merged commit 56a4393 into zlatko-minev:master Oct 23, 2020
@zlatko-minev
Copy link
Owner

Thank you! At the next meeting do you think you can present what these changes do?

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.

4 participants