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

Feat/field component tests #833

Conversation

RGPATCHI
Copy link
Contributor

Added tests for field component values

Updated temperature example, but still need to fix temperature description
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
Removed the Print statements in Volt and Mag examples
Added tests for Temp, Pressure, Volt and Mag component values.
@RGPATCHI RGPATCHI changed the base branch from main to feat/issue_504_field_components January 13, 2022 17:30
@jgd10
Copy link
Contributor

jgd10 commented Jan 13, 2022

Might be worth moving the setup method to a fixture but we can do that in the final PR #764

@jgd10
Copy link
Contributor

jgd10 commented Jan 13, 2022

otherwise LGTM!

@jgd10
Copy link
Contributor

jgd10 commented Jan 13, 2022

Note this is merging into a branch of pymapdl that is NOT main, at this stage.

@jgd10 jgd10 merged commit 1c00026 into ansys:feat/issue_504_field_components Jan 13, 2022
@RGPATCHI RGPATCHI deleted the feat/field_component_tests branch January 13, 2022 17:34
akaszynski pushed a commit that referenced this pull request Jan 14, 2022
* Created api commands for mag, pres and temp

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.

* Updated temperature example (#780)

* 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

* Feat/field component tests (#833)

* 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.

* refactored test setup into a fixture

Co-authored-by: RGPATCHI <84843983+RGPATCHI@users.noreply.github.com>
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.

2 participants