-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add math tutorials to the main tutorials branch #1910
base: doc/new-tutorials-section
Are you sure you want to change the base?
Add math tutorials to the main tutorials branch #1910
Conversation
@luisaFelixSalles can we scroll down in the out section here? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## doc/new-tutorials-section #1910 +/- ##
=============================================================
- Coverage 88.50% 88.44% -0.07%
=============================================================
Files 89 89
Lines 10251 10251
=============================================================
- Hits 9073 9066 -7
- Misses 1178 1185 +7 |
.. |Field| replace:: :class:`Field<ansys.dpf.core.field.Field>` | ||
.. |Fields| replace:: :class:`Field<ansys.dpf.core.field.Field>` | ||
.. |FieldsContainer| replace:: :class:`FieldsContainer<ansys.dpf.core.field.Field>` | ||
.. |FieldsContainers| replace:: :class:`FieldsContainer<ansys.dpf.core.field.Field>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luisaFelixSalles is that something we could make common somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm yes we can make it in a separate file and include it in the beginning of each tutorial. But then it would put references we don't use in some tutorials. Idk if that ok ?
Yes we can, I think is just not in the screenshot |
ce9b1fc
to
cd37263
Compare
4a1bf3b
to
0b7935b
Compare
576cd9f
to
627c2de
Compare
4606b6a
to
939a805
Compare
|
||
.. tab-item:: Fields | ||
|
||
Create the Fields by defining: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use lowercase here or the |Field| option?
Create the Fields by defining: | |
Create the fields by defining: |
- The entities ids and location. Thus, the |Field| scoping | ||
|
||
- If not specified, the location is *'nodal'* by default. | ||
- Each entity (here, the nodes) must have a |Scoping| id. The ids allows DPF to apply an operator on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Each entity (here, the nodes) must have a |Scoping| id. The ids allows DPF to apply an operator on the | |
- Each node must have a |Scoping| id. The ids allows DPF to apply an operator on the |
# Import the math operators module | ||
from ansys.dpf.core.operators import math as maths | ||
|
||
Create the Fields by intanciating the |Field| object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create the Fields by intanciating the |Field| object. | |
Create the fields by intanciating the |Field| object. |
Co-authored-by: Jorge Martínez <[email protected]>
Adds the tutorials of the math section
List of tutorials:
Preview on how it renders:
Mathematics section main page
Basic maths