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

MPM with Grasshopper #6

Open
wants to merge 108 commits into
base: main
Choose a base branch
from
Open

MPM with Grasshopper #6

wants to merge 108 commits into from

Conversation

tteschemacher
Copy link
Member

This is a work in progress PR for the implementation of MPM in Grasshopper by @phfranz .

phfranz added 9 commits April 12, 2022 16:15
- new button for analysis
- new button for run
- creation of all necessary files for mpm
- dynamic naming of projects
- output of projectparameters in corresponding files
- structure of project parameters for MPM almost completely avaiable as "hard code"
- only grid output process is not finished yet
- static output for project parameters file completed
- work on output of material parameters started
new MPM analysis, new mpm analysis class with more input parameters;  constructed similiar to other analysis types and classes
- errors in AnalysisMpm_new corrected
- field for bodymesh in AnalysisMpm_new introduced

- reverse of all changes in outputkratos FEM
- if for mpm analysis added to outputkratos FEM
- WriteProjectParameters function added to outputkratos FEM
- bugs in outputKratosFem fixed
- new classes for non linear material
- new class for transient analysis
Function write Project parameters is finished:
- differentation between static and dynamic analysis is implemented
- function can access objects of class TransientAnalysis
- variable names of Transient analysis were changed again, otherwise problems with already existing code
- new datastructure has to be established:
 - where formerly mesh was used, now geometry has to bes used 
 - this requires additional classes: SolidElement and SolidElementProperties
 -these were created, but are far from finished yet
- UserDataMesh and RefinementMesh had to be created, but are also far from finished
- UserDataUtilities: new function GetOrCreateUserDataMesh
- modified MPM_GH_new to extract mMeshList from DataTree
- Adapted AnalysisMPM_new to new datastructure
- added a new constructor to OutputKratosFEM 
- changed description of input parameters in SolidElement
if (!DA.GetData(1, ref material)) return;

double thickness = 0;
if (DA.GetData(2, ref thickness)) return;
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
if (DA.GetData(2, ref thickness)) return;
if (DA.GetData(2, ref thickness));

You have to remove the return statement, here. Otherwise, the function ends here even though you have actually provided the default paramater.

phfranz and others added 20 commits August 9, 2022 13:51
Bug from SolidElement removed in accordance with pull request and advice from @tteschemacher 
Bug from MPM_GH_new.cs for output parameter (analysis) removed
-> now no errors in standard procedure
In MPM_GH_new.cs the function ResetUserData was added in accordance with Model_IGA_GH
Code in MPM_GH_new.cs was cleaned
Project files of GiD for simple set-up added
Grid mesh output apart from boundary conditions ok, check if nodes from body mesh are also necessary
also grid mesh output widely static in many parameters
add boundary condition direct on solid?
Output of non-conforming grid conditions not yet finished
now no double node number in body and grid mesh, no double element numbers in body and grid meshes; in contrast to gid mdpa files, nodes and elements of body mesh come first in grid mesh
Body and grid mdpa files are correct apart from contrary numbering of elements. It remains to be checked if this causes problems
phfranz and others added 30 commits June 23, 2023 17:34
Readme.md for LSA example finished
Output Kratos FEM: much new stuff for non-conforming bcs
…tly. Output in background mdpa is working and penalty process is given out in project parameters.
…ody meshes

OutputKratosFEM: comments on how to restructure writing of non-conforming boundary conditions, conforming boundary conditions and body.mdpa
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.

3 participants