-
Notifications
You must be signed in to change notification settings - Fork 239
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 domain of definition for parameters. #2376
Add domain of definition for parameters. #2376
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2376 +/- ##
==========================================
- Coverage 32.75% 32.69% -0.07%
==========================================
Files 528 528
Lines 19929 19917 -12
Branches 9318 9348 +30
==========================================
- Hits 6528 6511 -17
+ Misses 10084 10056 -28
- Partials 3317 3350 +33
Continue to review full report at Codecov.
|
8592b0f
to
bc11b39
Compare
for (int i = 0; i < static_cast<int>(GlobalDim); ++i) | ||
N_u.template block<1, displacement_size / GlobalDim>( | ||
i, i * displacement_size / GlobalDim) | ||
.noalias() = N; |
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.
Curly brackets for the for-loop-body are missing. ✔️
SpatialPosition pos; | ||
pos.setElementID(id); | ||
typename Base::NodalVectorType alpha = | ||
_data.alpha.getNodalValuesOnElement(Base::_element, t); |
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.
Can alpha
be const? ✔️
pos.setElementID(id); | ||
typename Base::NodalVectorType alpha = | ||
_data.alpha.getNodalValuesOnElement(Base::_element, t); | ||
typename Base::NodalVectorType u_0 = |
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.
Can u_0
be const? ✔️
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.
Nice refactoring!
fa81ede
to
d91b44e
Compare
I'd like to merge it if there are no further issues. |
11a0061
to
3f558cb
Compare
@endJunction is this the PR you mentioned which enables use of functions in the prj file? |
I think you have missed to change some prj files, eg with the tag '''NonuniformVariableDependentNeumann''' |
3f558cb
to
486f25e
Compare
This PR fixes a bug when parameters of types Functions are used on boundaries. @WaltherM Do you have specific file names at hand, 'cas I didn't find anything? |
One more update/rebase. I forgot to fix the petsc cases. And a documentation file.... |
486f25e
to
168ffdd
Compare
Ok.
Correct - sorry, I oversaw the update of this file. |
These are almost the same and the difference is in the handling of the shape functions.
Together with the string to enum converters.
Move the renamed VariableDependentNeumann BC docu.
168ffdd
to
7bd4c73
Compare
OpenGeoSys development has been moved to GitLab. |
Previously, all of the parameters were implicitly defined on the bulk mesh. This lead to such artefacts like 'NonuniformXBoundaryConditions', for example. In this PR a possibility to explicitly define the mesh of a parameter is presented. The non-uniform boundary conditions are herewith no longer needed, because the parameters know the mesh.
Fixes an error if a 'Function' parameter is used on a boundary.