mfrontinterface.jl-f46a0e2b-0ed0-5677-a4b9-4be52fead4dc

Last snapshots taken from https://github.com/UnofficialJuliaMirror/MFrontInterface.jl-f46a0e2b-0ed0-5677-a4b9-4be52fead4dc on 2019-11-20T09:20:36.754-05:00 by @UnofficialJuliaMirrorBot via Travis job 153.23 , triggered by Travis cron job on branch "master"

https://github.com/unofficialjuliamirrorsnapshots/mfrontinterface.jl-f46a0e2b-0ed0-5677-a4b9-4be52fead4dc

Science Score: 18.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Last snapshots taken from https://github.com/UnofficialJuliaMirror/MFrontInterface.jl-f46a0e2b-0ed0-5677-a4b9-4be52fead4dc on 2019-11-20T09:20:36.754-05:00 by @UnofficialJuliaMirrorBot via Travis job 153.23 , triggered by Travis cron job on branch "master"

Basic Info
  • Host: GitHub
  • Owner: UnofficialJuliaMirrorSnapshots
  • License: other
  • Language: Julia
  • Default Branch: master
  • Size: 342 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 6 years ago · Last pushed over 6 years ago
Metadata Files
Readme License Citation

README.md

MFrontInterface

Build Status Coveralls

Citation

If you like our package, please consider citing with the infromation in CITATION.bib:

@inproceedings{frondelius2019mfrontinterface, title={MFrontInterface.jl: MFront material models in Julia{FEM}}, author={Tero Frondelius and Thomas Helfer and Ivan Yashchuk and Joona Vaara and Anssi Laukkanen}, editor={H. Koivurova and A. H. Niemi}, booktitle={Proceedings of the 32nd Nordic Seminar on Computational Mechanics}, year={2019}, place={Oulu} }

Example of usage

First we load the needed package and define the MFront model. As an example we use the Norton viscoplasticity.

Norton Stress-Strain Curve

```julia using MFrontInterface, Materials, Plots

norton = raw""" @DSL Implicit; @Author Thomas Helfer; @Date 3 / 08 / 2018; @Behaviour NortonTest; @Description { "This file implements the Norton law " "using the StandardElastoViscoplasticity brick" }

@ModellingHypotheses{".+"}; @Epsilon 1.e-16;

@Brick StandardElastoViscoPlasticity{ stresspotential : "Hooke" {youngmodulus : 200e3, poissonratio : 0.3}, inelasticflow : "Norton" {criterion : "Mises", A : 1.0e-5, n : 3.0, K : 100} }; """; ```

mfront helper function writes string to file and calls mfront executable to compile shared library. It also returns the path to the compiled library in tmp folder.

julia path = mfront(norton) mat = MFrontMaterialModel(lib_path=path, behaviour_name="NortonTest")

Let's use uniaxial_increment! function from Materials.jl. The first loading block defines the tension phase and the second the relaxation phase.

```julia s11 = [0.]; e11 = [0.]; tim = [0.] for i=1:200 dstran = 1e-5 uniaxialincrement!(mat, dstran, 1.0) updatematerial!(mat) push!(e11, mat.drivers.strain[1]) push!(tim, mat.drivers.time) push!(s11, mat.variables.stress[1]) end

for i=1:500 dstran = 0.0 uniaxialincrement!(mat, dstran, 1.0) updatematerial!(mat) push!(e11, mat.drivers.strain[1]) push!(tim, mat.drivers.time) push!(s11, mat.variables.stress[1]) end ```

Finally let's plot the stress-strain behaviour.

julia p1 = plot(tim,s11,xlabel="Time",ylabel="Stress",legend=false) p2 = plot(e11,s11,xlabel="Strain",ylabel="Stress",legend=false) plot(p1, p2, layout=2) savefig("Norton.png") Norton Stress-Strain Curve

Owner

  • Name: Unofficial Julia Mirror [Snapshots]
  • Login: UnofficialJuliaMirrorSnapshots
  • Kind: organization

Snapshots of all registered Julia packages. Updated weekly by @UnofficialJuliaMirrorBot. See also: @UnofficialJuliaMirror.

Citation (CITATION.bib)

@inproceedings{frondelius2019mfrontinterface,
    title={MFrontInterface.jl: MFront material models in Julia{FEM}},
    author={Tero Frondelius and Thomas Helfer and Ivan Yashchuk and Joona Vaara  and Anssi Laukkanen},
    editor={H. Koivurova and A. H. Niemi},
    booktitle={Proceedings of the 32nd Nordic Seminar on Computational Mechanics},
    year={2019},
    place={Oulu}
}

GitHub Events

Total
Last Year