hexagon logo

I am working with the 2018 version of Marc. Is it possible to create and mesh a 3D model using Python programming in Marc? Is it possible to load a step file with the model instead of defining the model in Python?

I am working with the 2018 version of Marc. Is it possible to create and mesh a 3D model using Python programming in Marc? Is it possible to load a step file with the model instead of defining the model in Python?
  • Hello Siring,
     
    Hope you are doing well.
     
    In the 2018 version of Marc, it is possible to create and mesh a 3D model using Python programming. I suggest you look at the various user guide examples available in the documentation. However, I suggest you check and update to the latest version of Marc Mentat.
     
    In version 2018 you can directly import the the step file to Mentat.
     
    image
     
    I hope this answers your question.
     
    Regards,
    Amol Kumbhar
  • Thank you very much for your support. I'll give it a try then.
     
    Regards
    Janina Siring
  • Hello again,
    Based on this, I still have a question that the manual has not yet made clear to me. Did I understand correctly that I can theoretically build the model normally in Marc, but can add the description of the material behaviour via Python? That would shorten the description via a Fortran subroutine, wouldn't it? Or is this combination not possible?
    Regards
    janina Siring
  • Hello Janina Siring,
     
    1. The FE mesh can be be generated using python, an example is given in python manual. For complicated geometries, it is better to create a geometry CAD package or Mentat and do meshing rather than manually create the mesh. STEP / IGES / Parasolid etc.. can be imported into Mentat. Nastran bdf format can also be used to import the FE Mesh.
    2. Python can be used in pre or post processing stages of model setup. For the material definition, you can use python to create a material with the available material models such as isotropic / Mooney etc..
    3. User subroutines allow to use material models l laws beyond the readily available material models in Mentat GUI / Marc , for example HYPELA subroutine can be used to define a custom material behavior.
    Regards,
    Kiran