Welcome to the forums. Please post in English or French.

You are not logged in.

#1 Code_Aster usage » Assign rotation matrix, link MFront to CodeAster, crystal plasticity » 2021-10-06 18:41:31

Replies: 0

Dear MFront and Code Aster Users,

I have successfully linked MFront (Meric-Cailletaud crystal plasticity model)
with Code Aster (see attached .mfront and .comm file).

I have recorded the procedure in the following video,
showing a one element, single crystal simulation:

The results I obtain agree with MTest
(see attached .test file).

Now the question is: how to change the rotation matrix?

In MTest I know I have to add for instance:

@RotationMatrix {{ 1.0 , 0.0 , 0.0 },
{ 0.0 , 1.0 , 0.0 },
{ 0.0 , 0.0 , 1.0 }};

Ideally, I would like to add additional material properties, like
@MaterialProperty Rij
representing the components of the initial rotation matrix and use them to
initialise the @RotationMatrix object.

This would allow me to pass easily those rotation matrix components
from the Code Aster .comm file to MFront.

Is this possible?

Or how do you envisage a strategy to assign the rotation matrix when running this model in Code Aster?

Next I would like to run polycrystal simulations, but once I figure out how to
pass the rotation matrix to Code Aster, it should be trivial.
I should just define different materials with different parameters in the Code Aster model,
representing the different grains.

Thank you very much in advance for your help.

I am really eager to learn more about the MFront code,
so I ask you about suggestions on how to look myself at the objects in the code,
so I can answer my questions by looking directly at the code.

For instance, if I want to look where the @RotationMatrix object is defined in the MFront code,
where should I look?

I tried to grep 'RotationMatrix' but I can only see that in .mtest files,
so I am a bit confused on where that keyword is defined in the code.
I am familiar with C++ but still a bit confused about the MFront code structure.

Thank you very much,
Best Regards,
Nicolò Grilli

#2 Code_Aster installation » Installation of Salome Meca 2019 on Ubuntu 20.04 for beginners » 2021-08-04 15:59:38

Replies: 0

I made this video to help beginners to install and use Salome Meca 2019 on Ubuntu 20.04
because of the issues I found when I was trying for the first time.


Or search "Install and use Salome Meca 2019 on Ubuntu 20.04" on youtube.

Trust this helps.

Best Regards,

#3 Re: Salome-Meca installation » Aster-Study Module Error » 2021-08-03 12:34:09

I am on Ubuntu 20.04 and Salome Meca V2019.0.3

I had the same problem with "AsterStudy module not found".
I solved with the solution posted by e_aybars

You can download the .deb package from here:

and install with Ubuntu Software

After installation I can use Salome Meca successfully both with the executable
and by launching Salome Meca from Ubuntu search.


#4 Re: Salome-Meca installation » SALOME MECA fatal error in UBUNTU 20.04 » 2021-08-03 11:38:45

In my case, the solution proposed by DomDunk works fine.
Thank you

#5 Re: Code_Aster installation » CA 14.6 problem install whit OPENBLAS » 2021-08-03 10:42:25

Hi Nicola

In my case I just run one test case that I copied from the tests folder and it run successfully.
I don't know how to run automated multiple tests, sorry I am really a newbie.
Maybe I would get the same problem.

If that can help, I used Python 3.8.10
I noticed the installation is quite sensitive to the python version.

In my case, I cannot run the mfront executable, even if tfel was compiled successfully.
Running MFront is my main interest.

I have got a suggestion from EDF colleagues to install the entire Salome_Meca 2019 package instead,
as this may install all the packages successfully.

I will keep you updated.

Thank you

#6 Re: Code_Aster installation » CA 14.6 problem install whit OPENBLAS » 2021-08-02 09:44:54

I did the following to solve the problem:

I do a first installation using the following options in setup.cfg

MATHLIB= '/opt/OpenBLAS/lib/libopenblas.a'

In this case the code aster installation fails, but tfel is successfull.

Then I go back to

without the MATHLIB line in setup.cfg

I rerun the installation, skipping all the modules already installed, I do only aster installation
and that works fine.
I tried some tests and I could run them successfully.

But now the questions are:
1) If I go on with the procedure for parallel installation, will it work?
2) Can I use successfully MFront if I installed tfel with MATHLIB and aster without?

I attach my installation instructions


#7 Re: Code_Aster installation » CA 14.6 problem install whit OPENBLAS » 2021-07-31 13:12:07

+ install /home/nicolo/projects/CodeAster/CodeAster14p6/14.6/share/aster/tests/zzzz414a.export (from astest/zzzz414a.export)
Waf: Leaving directory `/tmp/install_aster.44882/aster-14.6.0/build/std/release'
+ build the elements catalog elem.1 using installed aster (from /tmp/install_aster.44882/aster-14.6.0/build/std/release/catalo/cata_ele.ojb)
stderr: Segmentation fault (core dumped)

I am getting the same error when I try to use OpenBLAS 0.2.20
Please find attached the list of instructions that I used


#8 Re: Code_Aster installation » Code_aster 15.4 MPI installation problem » 2021-07-31 00:05:42

Another set of installation instructions that were unsuccessful

#10 Re: Code_Aster installation » Code_aster 15.4 MPI installation problem » 2021-07-31 00:03:28

Dear Anirudh,

I am a new code aster user,
I was trying to compile from source on Ubuntu 20.04
but I see there are no official instructions to follow.

I was watching the videos by Cyprien Rusu on youtube
but I think the procedure has changed.

Currently I have a problem with python, when I use python3.6 I cannot install tfel
and when I use python3.8 I cannot install aster.
Also in the youtube video the tfel installation fails
I will need to use MFront, therefore I need tfel compiled properly.

Could you please share the procedure you used for the sequential installation on Ubuntu 20.04 from source?

Thank you very much in advance

Best Regards,