segmentation fault (core dumped)

204 views
Skip to first unread message

Leoving LEE

unread,
Apr 10, 2021, 9:05:59 AM4/10/21
to Prisms-CPFE-users
1.jpghello everyone, 
As pointed in title, when I run ../../main in periodicBCs conditions, there exists a problem
"segmentation fault(core dumped)"
How can I solve it? thank you
Best regards,
Leoving

Leoving LEE

unread,
Apr 10, 2021, 9:12:58 AM4/10/21
to Prisms-CPFE-users
hey,
by the way, when I run other examples except the periodicBCs conditions, it worked well.

Mohammadreza Yaghoobi

unread,
Apr 10, 2021, 6:56:49 PM4/10/21
to Leoving LEE, Prisms-CPFE-users
Leoving,

There was a bug in mesh.cc new version for periodic BCs. I fixed that.
Please try to clone the PRISMS-Plasticity again with the current files and try it.

Thanks
Reza

--
You received this message because you are subscribed to the Google Groups "Prisms-CPFE-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prisms-cpfe-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prisms-cpfe-users/d8c5d54c-48d3-4a44-bcae-2ff229c4a941n%40googlegroups.com.

Leoving LEE

unread,
Apr 10, 2021, 9:33:51 PM4/10/21
to Mohammadreza Yaghoobi, Prisms-CPFE-users
Dear Yahoobi,
Yeah, It worked. But I want to know where the error occurred, could you please tell me the reason? And how could I avoid this problem?
Best regards,
Leoving

Mohammadreza Yaghoobi <yagh...@umich.edu> 于2021年4月11日周日 上午6:56写道:

Mohammadreza Yaghoobi

unread,
Apr 10, 2021, 10:05:06 PM4/10/21
to Leoving LEE, Prisms-CPFE-users
Leoving,

You shouldn't face this issue from now on. It's not sth you should change. There was a bug in the source code of the new version which I fixed.

Thanks
Reza

Mohammadreza Yaghoobi

unread,
Apr 11, 2021, 11:28:45 AM4/11/21
to Leoving LEE, Prisms-CPFE-users
Leoving,

I git clone the prisms-plasticity. I copied the files in the folder Fatigue/src/MaterialModels/ and substituted it in the plasticity/src/materialModels/crystalPlasticity/ folder. I compiled it and it worked fine.

Can you redo these steps and see if it works?

Thanks
Reza


On Sun, Apr 11, 2021 at 6:15 AM Leoving LEE <leovi...@gmail.com> wrote:
Dear Yaghoobi,
I make it right about the error that I mailed you. Now there is a another problem: when I recompile the plasticity package by replace the three .cc calculated files which I git clone from https://github.com/prisms-center/Fatigue. The error occurred as shown in attached file. How can I solve it? thank you.
Best regards,
Leoving 

Leoving LEE <leovi...@gmail.com> 于2021年4月11日周日 上午11:14写道:
Dear sir,
Sorry to interrupt you, I have to say
that I didn't change anything else, just recompile it after git updated version.
Best regards,
Leoving

Leoving LEE <leovi...@gmail.com> 于2021年4月11日周日 上午11:07写道:
Hey Yaghoobi,
I think it didn't work, when I run the simulation, I obtained the .pvtk file as shown in attached file,there are no grain informations. 

Mohammadreza Yaghoobi <yagh...@umich.edu> 于2021年4月11日周日 上午10:05写道:

Mohammadreza Yaghoobi

unread,
Apr 11, 2021, 8:36:35 PM4/11/21
to Leoving LEE, Prisms-CPFE-users
Leoving,

If you copy three files of the Fatigue src folder, this is a rate-dependent model. You cannot use it with the input files designed for the Default rate-independent model. You can try running the fcc/RateDependent_Backstress sample. Also, you can run the samples we have for this manuscript of "PRISMS-Fatigue computational framework for fatigue analysis in polycrystalline metals and alloys" available in Data Availability.

Thanks
Reza

Mohammadreza Yaghoobi

unread,
Apr 11, 2021, 9:56:53 PM4/11/21
to Leoving LEE, Prisms-CPFE-users
Leoving,

These are the complete steps you need to take to simulate the examples in the "PRISMS-Fatigue computational framework for fatigue analysis in polycrystalline metals and alloys" paper:
1) git clone PRISMS-Plasticity
2) git clone PRISMS-Fatigue
3) Copying the files in the folder Fatigue/src/MaterialModels/ and paste those in the plasticity/src/materialModels/crystalPlasticity/ folder. 
4) Compile the PRISMS-Plasticity
5) Get the data availability from https://www.nature.com/articles/s41524-021-00506-8
6) Make a folder inside /plasticity/applications/crystalPlasticity/ for your run, Let's say run1.
7) Copy the files (LatentHardeningRatio.txt,PeriodicBCsConstraints.txt,prm_0.prm,slipDirections.txt, slipNormals.txt) inside the simulation_files folder for any of the four examples available in the data availabilities into /plasticity/applications/crystalPlasticity/run1 folder.
8) Copy any grainID and orientations file you want from one of the texture folders next to the simulation_files let's say cubic_elongated_periodic to the /plasticity/applications/crystalPlasticity/run1 folder. The default prm_0.prm file inside the simulation files is for grainID_0.txt and orientations_0. If you choose other microstructures, you should change the file names inside the prm_0.prm file. The numbers should also be the same for grainID and orientation.

9) Run the example as mpirun -n 8 ../main prm_0.prm inside the /plasticity/applications/crystalPlasticity/run1 folder.

This should work fine as I tested it right now step by step and it works without any problems.

Thanks
Reza

On Sun, Apr 11, 2021 at 9:08 PM Leoving LEE <leovi...@gmail.com> wrote:
I'm afraid I didn't make it clear, I mean I just run according to the code shown in the example from "PRISMS-Fatigue computational framework for fatigue analysis in polycrystalline metals and alloys"

Leoving LEE <leovi...@gmail.com> 于2021年4月12日周一 上午8:54写道:
Dear Yaghoobi,
I followed the instruction in PRISMS-Fatigue_python_script_guide_v1.pdf.  As described in the red line of attached file, recompiled it. It should worked using downloaded prm.prm,but it's not. Can you help me how to run it correctly by myself, I want to copy the work did of PRISMS-FATIGUE computational framework for fatigue analysis in polycrystalline metals and alloys?
thank you

Mohammadreza Yaghoobi <yagh...@umich.edu> 于2021年4月12日周一 上午8:36写道:

Leoving LEE

unread,
Apr 11, 2021, 10:33:41 PM4/11/21
to Mohammadreza Yaghoobi, Prisms-CPFE-users
dear sir,
Thanks, I'll check them out. Thank you for your explanation. 
best regards

Mohammadreza Yaghoobi <yagh...@umich.edu> 于2021年4月12日周一 上午9:56写道:

Leoving LEE

unread,
Apr 12, 2021, 8:46:46 PM4/12/21
to Prisms-CPFE-users
It works well, but I'm not sure if it's convenient to ask you that when I run the simulation, I can't obtain the  .vtk and .pvtk files (I have already set the write ouput option) . And how can I get the Maxten.#.csv and Maxcom#.csv files? I just obtained the stress-strain.txt file when I run the prm0.prm file. Hope for your help. Thank you,sir.
Best regards,
Leo

Leoving LEE

unread,
Apr 12, 2021, 9:13:38 PM4/12/21
to Prisms-CPFE-users
hey everyone,
I have read the updateAfter.cc file about the quadrature output, but in my results file, there is no results about grain id or quadrature point coor., or any other setting information. how should I do?
thanks

在2021年4月12日星期一 UTC+8 上午10:33:41<Leoving LEE> 写道:

Mohammadreza Yaghoobi

unread,
Apr 12, 2021, 10:51:53 PM4/12/21
to Leoving LEE, Prisms-CPFE-users
Leoving,

If you run those files all the way to the last time step, a few quadrature output files will be generated for you at the simulation time defined as:
set Tabular Time Output Table  = 0,0.7,2.1,3.5,4.9,6.3,7.7,9.1,10.5
Each belongs to one of the Max compression or tension in this case. Depending on the time step, you can figure out what cycle you are in. You need to understand the way the displacement is applied. For example, in the case of Effect of grain morphology input file, it has:
set Vertices Periodic BCs row 1 = 1,1,1, 1,1,1, 1,0,1, 1,1,0, 1,0,0, 1,0,0, 0,0,0, 1,0,0
set Vertices Periodic BCs row 2 = 0,0,0, 0.0005075,0,0, 0,0,0, 0,0,0, 0.0005075,0,0, 0.0005075,0,0, 0,0,0, 0.0005075,0,0
set Tabular Periodic Time Table                         = 0,0.7,2.1,3.5,4.9,6.3,7.7,9.1
set Tabular Periodic Time Table Coefficient             = -1,1,-1,1,-1,1,-1,1,-1,1

set Time increments                      = 0.01

To understand each of these lines, you need to read the documentation at https://github.com/prisms-center/plasticity/blob/master/docs/PRISMS_plasticity_user_manual_V1_2_0.pdf.

The first max compression occurs at time=0.7 which is the 69 timestep. So the quadrature output with the 69 in its name is the information for quadrature output for the first max compression. The information in the PRISMS-Fatigue paper is collected at the second cycle. In this case, the QuadratureOutput with the increment numbers of 349 and 489 are the MaxComp and MaxTen for the second cycles, respectively.



Also, for the pvtu of fields and solution, you need to modify this:
set Write Output                                 = false
And this define how frequent you'll get this:
set Skip Output Steps                            = 10


Thanks
Reza

--
You received this message because you are subscribed to the Google Groups "Prisms-CPFE-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prisms-cpfe-us...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages