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

Created api commands for mag, pres and temp and volt #764

Merged
merged 4 commits into from
Jan 14, 2022

Conversation

jgd10
Copy link
Contributor

@jgd10 jgd10 commented Dec 7, 2021

Created equivalent pymapdl commands for the 4 scalar queries: MAG, PRES, VOLT,
and TEMP. Examples have only been added for one of the four and tests
for none of them because my knowledge of APDL is not extensive enough.
Further work will require external input.

@RGPATCHI Can you create the examples for the commands without them? In addition we can work on tests for the three new functions together.

Created equivalent pymapdl commands for the 3 scalar queries: MAG, PRES,
and TEMP. Examples have only been added for one of the three and tests
for none of them because my knowledge of APDL is not extensive enough.
Further work will require external input.
@jgd10 jgd10 requested a review from akaszynski December 7, 2021 15:30
@jgd10 jgd10 added the DO NOT MERGE Not ready to be merged yet label Dec 7, 2021
@jgd10 jgd10 changed the title Created api commands for mag, pres and temp Created api commands for mag, pres and temp and volt Dec 7, 2021
@akaszynski
Copy link
Collaborator

Thanks for adding this.

Will need tests for these (eventually).

* Updated temperature example

Updated temperature example, but still need to fix temperature description

* Added Examples for querying TEMP, PRES,VOLT and MAG results

I have added examples to extract the Temperature, Pressure, Voltage and Magnetic Scalar Potential at node ID 1 of the solved model.

Also, I have corrected the _run_query(f"VOLT({n})" to _run_query(f"MAG({n})" for Magnetic Scalar Potential example

* Made changes due to Review

Removed the Print statements in Volt and Mag examples
@jgd10
Copy link
Contributor Author

jgd10 commented Jan 13, 2022

Examples reviewed and merged in (to this branch, not main). Just tests left!

@jgd10 jgd10 mentioned this pull request Jan 13, 2022
* Updated temperature example

Updated temperature example, but still need to fix temperature description

* Added Examples for querying TEMP, PRES,VOLT and MAG results

I have added examples to extract the Temperature, Pressure, Voltage and Magnetic Scalar Potential at node ID 1 of the solved model.

Also, I have corrected the _run_query(f"VOLT({n})" to _run_query(f"MAG({n})" for Magnetic Scalar Potential example

* Made changes due to Review

Removed the Print statements in Volt and Mag examples

* Added Tests for field component values

Added tests for Temp, Pressure, Volt and Mag component values.
@jgd10
Copy link
Contributor Author

jgd10 commented Jan 13, 2022

I will do a bit of refactoring of the tests into fixtures and then remove the "do not merge" tag and it can be reviewed!

@jgd10 jgd10 self-assigned this Jan 13, 2022
@jgd10 jgd10 removed the DO NOT MERGE Not ready to be merged yet label Jan 14, 2022
Copy link
Collaborator

@akaszynski akaszynski left a comment

Choose a reason for hiding this comment

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

LGTM!

@akaszynski akaszynski merged commit c07291f into main Jan 14, 2022
@akaszynski akaszynski deleted the feat/issue_504_field_components branch January 14, 2022 17:15
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.

3 participants