-
Notifications
You must be signed in to change notification settings - Fork 40
hyperElasticFEM matrix-free 3D #8
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
Open
herrinj
wants to merge
20
commits into
C4IR:master
Choose a base branch
from
herrinj:herrinj-master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. ‘yn’ is not defined when wc is empty. Therefore, xn should be updated by yRef. 2. Addpath for add-ons folders during FAIR startup. 3. solver is defined as a char, not string. Probably, this issue has recently arises because of structural changes in R2017a.
These changes are required to use matrix-free functionality of hyper elastic regularization function in the add-on FEMAPP (Only for 2D). To verify the changes, the file “EFEM_SSD_MBvsMF.m” compares the results from MF and MB.
These are minor changes to run matrixfree functionality of FEMPIRE. But, data fidelity term is still not matrixfree. Prob, this involves little more work. Will come back to this later. Added a file to compare results from MF and MB.
Matrixfree implementations of - derivative of determinants, - diagonal of hessian matrix, and - Hessian matrix
* 'master' of https://github.com/hariagr/FAIR.m: another minor edit two minor changes
Implement matrix free code to evaluate determinant. Added a script “verifyMF_getdeterminant” to verify results
Modified HyperElasticFEM function. Work to do: MatrixFree code for diagonal elements of Hessian matrix.
MatrixFree code for diagonal of Hessian matrix is implemented. We may have an issue in the implementation. - if we set only alphaVolume parameter to check the accuracy of Matrixfree code with MB code, there is a slight error in the calculation. You can run hyperelastic.m to see the error norm. It appears that the differences are high only for few nodes. These nodes varies with different yc/yn values. Generally, d2Svolume has very high values. Small numerical errors in least decimal points are probably showing up. These are few quick observations.
Most of the pieces required for MatrixFree code are completed now. Run EFEM_FEMPIRE_Mice3D.m. I have not done rigorous testing so far. Specially for 3D code, few of the calculations are being done multiple times. May be we can restructure the code little bit to reduce computational time.
Moved getBasisGradient and Cofactor3D functions in a separate script file. Gradient of basis functions are now computed only once in the entire function call, by moving these calculations to MESH structure main file. NOTE: There is a slight difference between estimates coming out from MatrixFree and Non-MatrixFree code, in the 3D case.
Minor changes in FEMobjFctn.m for MatrixFree functionality and added a PCG solver function.
…ee and matrix-based code for 2D and 3D problems. Stored cof, det, and By explicitly to make code faster.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Extending #5 to 3D and matrix-free implementations. Extends on Hari's work.