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

Acane Fem functions #153

Merged
merged 32 commits into from
Aug 26, 2024
Merged

Acane Fem functions #153

merged 32 commits into from
Aug 26, 2024

Conversation

mohd-afeef-badri
Copy link
Collaborator

Idea is to create common functions base between modules and to optimize modules this way.

mohd-afeef-badri and others added 18 commits August 3, 2024 20:46
- start moving functions to femutils
Move common operations to ArcaneFEMFunctions for code refactoring.

- New Real3x3 function for gradient
add operator +
subtraction  -
unary negation operator
scalar multiplation
outer vector product
For Bary Center calculation
For Dirichlet BC
- source term functions
- Dirichlet point function
- Manufactured Solution function
- Quad area function
- Useful for Quad/Tetra mesh with 4 entities
- Introduced outer product operator ^ for 4x4
- introduced computeGradientXQuad4 and
computeGradientYQuad4
@mohd-afeef-badri mohd-afeef-badri linked an issue Aug 9, 2024 that may be closed by this pull request
1 task
@mohd-afeef-badri mohd-afeef-badri self-assigned this Aug 9, 2024
@mohd-afeef-badri mohd-afeef-badri added the enhancement New feature or request label Aug 9, 2024
Copy link
Member

@grospelliergilles grospelliergilles left a comment

Choose a reason for hiding this comment

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

Thanks for the great PR.
It is ok for me to merge.
In the future we may need to change some minor things in ArcaneFemFunctions.h:

  • Do not directly use the types generated from CaseOptions to make it more generic.
  • Use views instead of VariableNodeReal3& to arguments. This will make these functions available on GPU. The view class is VariableNodeReal3InView. Maybe we can add it as a field of a helper class so we do not need to pass it as a parameter for each compute function.

@mohd-afeef-badri
Copy link
Collaborator Author

Thank you @grospelliergilles for the reviews, I will keep your suggestions in a Todo list, definitely what you suggest will be helpful in future.

@mohd-afeef-badri mohd-afeef-badri merged commit 8d76b69 into main Aug 26, 2024
5 checks passed
@mohd-afeef-badri mohd-afeef-badri deleted the dev/mab/arcanefem-functions branch August 30, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArcaneFemFunctions in in femutils
2 participants