Coder Social home page Coder Social logo

matmodlab / matmodlab2 Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 5.0 4.74 MB

Material Model Driver

Home Page: https://tjfulle.github.io/matmodlab2/

License: BSD 3-Clause "New" or "Revised" License

Python 16.96% Jupyter Notebook 65.27% Fortran 17.77%

matmodlab2's People

Contributors

sswan avatar tjfulle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

matmodlab2's Issues

J0 is never updated from DDSDDE

Looking at core/matmodlab.py, it seems that J0 is initially evaluated during startup but never updated (with a numerical jacobian or with the returned jacobian). Also curious, the returned DDSDDE seems to always be discarded (whether it is None or a full matrix).

Prescribed deformation gradient

When you prescribe the deformation gradient, it's immediately recast in terms of strain (defined by the current kappa) and then that strain is linearly interpolated over the step. At each point along the interpolation, the strain is converted to deformation gradient.

This gives a non-linear behavior when you look at the deformation gradient components in the output. When you would expect a nice straight line over the step, you get a curve.

See the test in /tests/swan/test_defgrad_basic.py.

materials/plastic3.py has bad call to symmetric_dyad()

While running HardeningJ2Plasticity.ipynb it failed when trying to run plastic3.py because of a call to symmetric_dyad() in core/tensor.py. I believe that the problem is that symmetric_dyad() expects two length-3 arrays but it's used in plastic3.py as a way to construct a 4th-order tensor from two 2nd order tensors.

As such, HardeningJ2Plasticity.ipynb cannot be run.

Issue with "mml test"

I am getting this error when I tried to follow the installation instruction and could not run it. Can you please take a look into it?

udayan@MEB-3560-02:~/Downloads/matmodlab-3.0.6/matmodlab$ mml test
Traceback (most recent call last):
File "/home/udayan/anaconda3/bin/mml", line 6, in
exec(compile(open(file).read(), file, 'exec'))
File "/home/udayan/Downloads/matmodlab-3.0.6/matmodlab/bin/mml", line 7, in
from matmodlab.mmd.startup import main
File "/home/udayan/Downloads/matmodlab-3.0.6/matmodlab/init.py", line 8, in
from StringIO import StringIO
ImportError: No module named 'StringIO'

Thanks

Run steps as they are added

In Matmodlab, as suggested by @sswan, steps are run as they are added to the Simulator object. In Matmodlab2, steps are not run until the MaterialPointSimulator.run method is called. This was done for a couple reasons:

  • If steps are run as they are added, the material must first be assigned to the simulator
  • If all steps are run with the MaterialPointSimulator.run method, the output database can be setup with the correct dimensions.

If steps are to be run as the are added:

  • The material must be assigned before the first step
  • The size output database won't be known so it will either need to be allocated with some large size (that can be changed if space runs out), or allowed to grow.
  • If you want simulation results to be written to a file, the call to MaterialPointSimulator.dump will have to be explicitly requested.

@sswan, do you still believe it is advantageous to run steps as they are added? I don't feel strongly either way.

matmodlab2 installation

Hello,

I'm still new to this tool, so my question is very simple.

I downloaded matmodlab, and (prerequisites: python, numpy, and scipy), but I don't know how to install matmodlab itself, I cannot understand how it works. could you help please?

Thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.