Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Custom External Material Interfaces
Posted 18 oct. 2016, 19:12 UTC−4 Low-Frequency Electromagnetics, Materials, Structural Mechanics Version 5.2 3 Replies
Please login with a confirmed email address before reporting spam
I currently have a C function that allows me to compute nonlinear magnetoleastic (aka magnetostrictive) behavior. The call to this function looks something like:
[strain11, strain22, ...., strain23, B1,B2,B3 ] = material(stress11, stress22, ...stress 23, H1,H2,H3)
So the material calculates the nonlinear strain and flux density based on input stress and magnetic field. I am looking to use this model with an External Material, but I've been having problems setting it up. The key challenge I have is in setting up an External Material with terms from both mechanical and magnetic properties. The current Interface Types seem limited to exclusively solid mechanics or magnetic systems, so how can I couple them?
Should I setup two materials, one that returns the magnetic properties, and another that returns the mechanical? I'm assuming I could then pass the required arguments as parameters in the Material Contents section.
Or else, I saw on a recent Comsol video that a company had created its own Interface Type (www.comsol.com/video/modeling-nonlinear-materials-comsol-multiphysics). Is there any information available on how to create your own interface?
The main information I need is the syntax for main function in my dll, and how to pass both magnetic and mechanical variables to it.
Thanks
[strain11, strain22, ...., strain23, B1,B2,B3 ] = material(stress11, stress22, ...stress 23, H1,H2,H3)
So the material calculates the nonlinear strain and flux density based on input stress and magnetic field. I am looking to use this model with an External Material, but I've been having problems setting it up. The key challenge I have is in setting up an External Material with terms from both mechanical and magnetic properties. The current Interface Types seem limited to exclusively solid mechanics or magnetic systems, so how can I couple them?
Should I setup two materials, one that returns the magnetic properties, and another that returns the mechanical? I'm assuming I could then pass the required arguments as parameters in the Material Contents section.
Or else, I saw on a recent Comsol video that a company had created its own Interface Type (www.comsol.com/video/modeling-nonlinear-materials-comsol-multiphysics). Is there any information available on how to create your own interface?
The main information I need is the syntax for main function in my dll, and how to pass both magnetic and mechanical variables to it.
Thanks
3 Replies Last Post 20 oct. 2016, 08:56 UTC−4