GithubHelp home page GithubHelp logo

zxj19910214 / diffuse-interface-polycrystal-plasticity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from admal002/diffuse-interface-polycrystal-plasticity

0.0 1.0 0.0 1.04 MB

A 3-d implementation of a diffuse-interface polycrystal plasticity model

MATLAB 100.00%

diffuse-interface-polycrystal-plasticity's Introduction

# Copyright (c) 2017 Nikhil Admal/Jaime Marian

# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the 'Software'), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# 
# Author: Nikhil Admal

This file describes the COMSOL implementation of a three-dimensional diffuse-interface 
polycyrstal plasticity developed in the paper:

    Nikhil Chandra Admal, Giacomo Po, Jaime Marian. 
    “Diffuse-interface polycrystal plasticity: Expressing grain boundaries 
    as geometrically necessary dislocations.” Materials Theory, 1(1):6, 2017

The boundary-value-problem simulated is for a three-dimensional polycrystal. 
See the above reference for additional details regarding the model.

This directory consists of the files

    README
    polycrystal.m
        cdf.m
        logcdf.m
    expressions.m
        levCiv.m
    poly_cp.mph

Following are steps to be followed to run the poly_cp.mph:

1) An initial polycrystal with a log-normal distribution of grain sizes is generated using 
   the 'polycrystal.m' (depends on 'cdf.m' and 'logcdf.m') matlab file. The polycrystal is 
   outputted as three .txt files: 'orientation1.txt', 'orietation2.txt' and 'orientation3.txt'. These
   files are subsequently read into COMSOL when executing poly_cp.mph.

2) Run the 'expressions.m' (depends on 'levCiv.m') matlab file which is used to generate two .txt files:
   a) 'variables.txt' and b) 'pde.txt', which are used as input for variable definitions and weak
   form pdes in COMSOL v5.2 file 'poly_cp.mph'. 

3) Open the 'poly_cp.mph' COMSOL file. The 'poly_cp.mph' file, in its current form, has the variables 
   and the pdes already inputted. So, step 2 above may be skipped. Instead, if you intend to make any 
   changes to the model by altering the expressions.m file, then the new variables.txt and the pde.txt 
   files are to be included as follows:

   The files variables.txt are uploaded in the tabs (of COMSOL v5.2)

        Component 1 -> Definition -> variables.

   The weak-form pdes in the file 'pde.txt' are pasted into the
   PHYSICS tab:

        Force Balance       -> Weak Form PDE1


   Finally, the files orientation*.txt generated in step 1 are read in the tabs

        Global Definitions -> interpolation 1/2/3

4) Run the poly_cp.mph file.

diffuse-interface-polycrystal-plasticity's People

Contributors

admal002 avatar

Watchers

 avatar

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.