nairnj / nairn-mpm-fea

nairn-mpm-fea computational mechanics project
86 stars 37 forks source link

Cracks #12

Open yang-guoli opened 2 years ago

yang-guoli commented 2 years ago

Hi, i want to use the Nairn software to simulation with crack, but i don't know how to set in the xml files. Could you help to write the xml file or give a example xml file for more people can to use it?

nairnj commented 2 years ago

All the documentation you need is here:

https://osupdocs.forestry.oregonstate.edu/index.php/Main_Page https://osupdocs.forestry.oregonstate.edu/index.php/Main_Page

but I never recommend directly working with XML files. It is tedious, prone to error, and hard to change to try new things. You should always use the companion applications NairnFEAMPM for Mac or NairnFEAMPMViz for Windows. You write a script file that takes care of creating the XML file for you.

I have not updated nairn-fea-mpm for a while and have been working a lot on my research code. I plan to update soon. Most crack things are unchanged, but I have created much better ways to do cohesive modeling and have some features for 3D cracks.

Regards, John Nairn

On Jun 13, 2022, at 1:37 AM, yang-guoli @.***> wrote:

Hi, i want to use the Nairn software to simulation with crack, but i don't know how to set in the xml files. Could you help to write the xml file or give a example xml file for more people can to use it?

— Reply to this email directly, view it on GitHub https://github.com/nairnj/nairn-mpm-fea/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA7UMMQO5MD2UYPYU5XLVO3XLTANCNFSM5YTM6IBQ. You are receiving this because you are subscribed to this thread.

yang-guoli commented 2 years ago

@nairnj Thanks for your reply. i have the NairnFEMPM for the linux, i mean that i want to create input files (xxx.fmcmd), i was try to write the script file according to your website, but it report "segmentation fault" error.the files as follows: image

nairnj commented 2 years ago

The crack setup wrong, but as mentioned, I never create them using XML. The NairnFEAMPMViz is a Java app that will run in Linux too. Ot many people run it in Windows, write a script for the problems, interpret the script, export to XML, and copy that XML to Linux machine to run it. I do that all the time for large calculations.

Those pt, Line, and Circle all in the same crack are wrong. You example looks like it came from

https://osupdocs.forestry.oregonstate.edu/index.php/Defining_Cracks https://osupdocs.forestry.oregonstate.edu/index.php/Defining_Cracks

but that is not an actual crack. Those are just the possible commands that an be using in a CrackList element. The crack should define things that link into a crack. Here is sample to create a straight crack:

On Jun 13, 2022, at 6:28 PM, yang-guoli @.***> wrote:

@nairnj https://github.com/nairnj Thanks for your reply. i have the NairnFEMPM for the linux, i mean that i want to create input files (xxx.fmcmd), i was try to write the script file according to your website, but it report "segmentation fault" error.the files as follows: https://user-images.githubusercontent.com/73353085/173474029-d2ade2c3-e6b1-4986-abc4-b624706b2e54.png — Reply to this email directly, view it on GitHub https://github.com/nairnj/nairn-mpm-fea/issues/12#issuecomment-1154611884, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA7Q5QFWWXWEKPRCHQELVO7N4NANCNFSM5YTM6IBQ. You are receiving this because you were mentioned.

yang-guoli commented 2 years ago

@nairnj Thanks for your help