CalculiX & Mfront

Thank you very much Rafal. I’m stuck in your Portable version from 2020:Mfront_portable.7z

This is where I’m now in case it helps.
I have successfully install the new package by means of pacman -S mingw-w64-x86_64-tfel.
Add paths to the system variable.
When I run ccx 2.21 inside a folder that contains your portable files Mfront runs fine but just for some material behaviors.
example:

SaintVenantKirchhoffElasticity
DruckerPrager

That means a lot because it means the libraries are found.
Some other material behaviours throw exceptions like “tangent operator not yet available” but I guess that is related with the actual development state of the material behavior or wrong material parameters set up from my side not ccx. That’s the reason why I would like to update and see now if fixed.

But when I run ccx 2.21 using the full set of dll inside the new updated folder C:\msys64\mingw64\bin something doesn’t work.

I have compared one by one and I think this two dll are the big difference between your portable version and the full recent new one installed on my computer:

libCALCULIXBEHAVIOUR.dll
libTFELMaterial.dll

There is not too much feedback abaout the failure. I have completeed the dll collection with yours when the system asked for a missing lib ( libCALCULIXBEHAVIOUR.dll ) but doesn’t work.

I will wait. Thanks a lot in advance.

I still see the manual says to call the shared material libraries by means of

Calling mechanical behaviour defining shared libraries.

@CALCULIXBEHAVIOURS when the material behaviours works without the “S” at the end. At least for me with the portable version.

@CALCULIXBEHAVIOURS deliver the error:

*ERROR: invalid material name ‘@CALCULIXBEHAVIOURS_SAINTVENANTKIRCHHOFFELASTICITY’ (unable to load library)

Mfront .dll library from GitHub - thelfer/MFrontGallery: This project shows how to create a compilation project for MFront properties, behaviours and models v2.0 (mfront 4.2.0):

$ldd libCalculiXInterface.dll

ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffab1930000)
KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ffab09b0000)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffaaef20000)
msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffab1600000)
libstdc++-6.dll => /usr/local/MF/all/MFront/libstdc++-6.dll (0x7ffa97c00000)
libgcc_s_seh-1.dll => /usr/local/MF/all/MFront/libgcc_s_seh-1.dll (0x7ffaaa590000)
libTFELException.dll => /usr/local/MF/all/MFront/libTFELException.dll (0x7ffaa98c0000)
libwinpthread-1.dll => /usr/local/MF/all/MFront/libwinpthread-1.dll (0x7ffaa9870000)
libwinpthread-1.dll => /usr/local/MF/all/MFront/libwinpthread-1.dll (0x1ec67850000)
CRYPTBASE.DLL => /c/Windows/SYSTEM32/CRYPTBASE.DLL (0x7ffaae400000)
bcryptPrimitives.dll => /c/Windows/System32/bcryptPrimitives.dll (0x7ffaaf4e0000)

It is possible that due to the lack of these: librarieslibgcc_s_seh-1.dll, libwinpthread-1.dll, libstdc++-6.dll, MFront with the Mecway or PrePoMax could not work (bconverged has these libraries in the bin folder).

1 Like

so many thanks for supporting back, however i miss unilateral Mazars previously available.

1 Like

below list of material model are not yet available also. I’m not currently used, but maybe someone else is interesting. Only to notify for next or future release and distribution.

  • BentoniteMassin2017
  • Massin2017Behaviour-common
  • ConcreteBurger_EDF_CIWAP_2021
  • ConcreteBurger_EDF_CIWAP_2021_v2
  • CrushedSaltKorthausBehaviour
  • UO2_YoungModulus_Martin1989
  • VanadiumAlloyViscoplasticBehaviour
  • PoplarOrthotropicGeneralizedMaxwell_2021

Example:
image

Thank you very much Rafal. I need to do some more test. Actually, if I use the new libCALCULIXBEHAVIOUR.dll I get :

The entry point of the procedure is not found.

Just replacing libCALCULIXBEHAVIOUR.dll by the old one it works again but I guess it is then calling the old files. I have try to run a new material model and it failed.

unfortunately, not all MFront material models can be supported in CalculiX, and probably it’s related to hydro-mechanical problems. Previously, i’m not yet to further study the implementation and limitation, thanks for mentioning.

Maybe this version, adding a few libraries.dll, according to ldd libCALCULIXBEHAVIOUR.dll

ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffab1930000)
KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ffab09b0000)
KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffaaef20000)
msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffab1600000)
libgcc_s_seh-1.dll => /usr/local/MF/all/MFront/libgcc_s_seh-1.dll (0x7ffaa8530000)
libCalculiXInterface.dll => /usr/local/MF/all/MFront/libCalculiXInterface.dll (0x7ffaa94c0000)
libTFELException.dll => /usr/local/MF/all/MFront/libTFELException.dll (0x7ffaaa590000)
libstdc++-6.dll => /usr/local/MF/all/MFront/libstdc++-6.dll (0x7ffa5e1d0000)
libTFELMaterial.dll => /usr/local/MF/all/MFront/libTFELMaterial.dll (0x7ffaa8440000)
libwinpthread-1.dll => /usr/local/MF/all/MFront/libwinpthread-1.dll (0x7ffaa9490000)
libTFELUtilities.dll => /usr/local/MF/all/MFront/libTFELUtilities.dll (0x7ffaa7210000)
libwinpthread-1.dll => /usr/local/MF/all/MFront/libwinpthread-1.dll (0x2248e990000)
libTFELNUMODIS.dll => /usr/local/MF/all/MFront/libTFELNUMODIS.dll (0x7ffaa8580000)
CRYPTBASE.DLL => /c/Windows/SYSTEM32/CRYPTBASE.DLL (0x7ffaae400000)
bcryptPrimitives.dll => /c/Windows/System32/bcryptPrimitives.dll (0x7ffaaf4e0000)

I’m wondering that the libTFELMath.dll library is not required (previously it was needed)

1 Like

Rafal

many thanks for updates, btw some material is missing. I did not find MohrCoulombAbboSloan in latest distribution. Also, example input files of DruckerPragerCap is different from previous.

new,

old,

Hi,

:flushed:. You read my mind. I’m doing some testing right now of DruckerPragerCap.
Hope I can post something soon.

By the way, do you know what Tau refers to for the simplest Drucker linked with the collection that Rafal prepared?

This is most likely due to the fact that some of the materials are fully defined, previously I had manually parameterized them:

image

In my opinion, we need to convince Thomas to make all available materials parametric and available at GitHub - thelfer/MFrontGallery: This project shows how to create a compilation project for MFront properties, behaviours and models

thanks for mentioned the author of TFEL/MFront and some example. At least an addition for MohrCoulombAbboSloan could be useful since it has tension cut-off, interesting to know how numerically stable is it.

it seems related to shear yield stress, these value have correlation with friction angle and cohesion.

DruckerPragerCap
MohrCoulombAbboSloan

1 Like

DruckerPragerCap is parameterized now, also MohrCoulombAbboSloan has been added. Thank you.

By Parametrized do you mean that now I can input my parameters as desired?

These are my results for Drucker-Prager CAP.
Time step had to be reduced for the transition area between CAP and Linear.
Three of the reference points agree with input data.

Slope (34.4º), Minimum hidrostatic pressure (-75 MPa) and Intersection with ordinate (150 MPa)

Transition point between the two plastic surfaces is slightly ofsset.


** 1.5E+11 [Pa]
** 0.30 [ ]
** 1.5E+08 [Pa] Line Intersection at Hydrostatic Pressure zero
** 0.60 [Radians] Slope angle in radians
** -1.0E+07 [Pa] Transition point between the two plastic surfaces (Cap & Line Crossing)
** -7.5E+07 [Pa] Minimum Hidrostatic Pressure allowed