Commit 642fed86 authored by Maurine Montagnat's avatar Maurine Montagnat
Browse files

english corrections

parent 2005a45a
Pipeline #75518 failed with stage
in 9 minutes and 28 seconds
%% Cell type:markdown id:employed-linux tags:
%% Cell type:markdown id: tags:
# Create input for CraFT
```{warning}
This notebook should be remove as it is specific for our use case. I don't know how to deal with it. Therefore the same question is ask for the function within the notebook
This notebook should be removed as it is specific for our use case. I don't know how to deal with it. Therefore the same question is asked for the function within the notebook
```
This notebook show how to create input for [CraFT](https://lma-software-craft.cnrs.fr/).
This notebook shows how to create input for [CraFT](https://lma-software-craft.cnrs.fr/).
%% Cell type:code id:fuzzy-ballot tags:
%% Cell type:code id: tags:
``` python
import xarrayaita.loadData_aita as lda #here are some function to build xarrayaita structure
import xarrayaita.aita as xa
import xarrayuvecs.uvecs as xu
......@@ -26,29 +26,29 @@
import scipy
%matplotlib widget
```
%% Cell type:markdown id:spare-cache tags:
%% Cell type:markdown id: tags:
## Load your data
%% Cell type:code id:turned-portsmouth tags:
%% Cell type:code id: tags:
``` python
# path to data and microstructure
path_data='orientation_test.dat'
path_micro='micro_test.bmp'
```
%% Cell type:code id:amateur-testing tags:
%% Cell type:code id: tags:
``` python
data=lda.aita5col(path_data,path_micro)
```
%% Cell type:code id:subject-creator tags:
%% Cell type:code id: tags:
``` python
data
```
......@@ -69,28 +69,28 @@
date: Thursday, 19 Nov 2015, 11:24 am
unit: millimeters
step_size: 0.02
path_dat: orientation_test.dat
%% Cell type:markdown id:several-termination tags:
%% Cell type:markdown id: tags:
CraFTWith [G50 fabric analyser](http://www.russellheadinstruments.com/files/G50%20brochure%2009Jan08%20rev1.pdf) we usually filter the value with a `quality` below $75$.
%% Cell type:code id:local-chemical tags:
%% Cell type:code id: tags:
``` python
data.aita.filter(50)
```
%% Cell type:markdown id:wanted-submission tags:
%% Cell type:markdown id: tags:
## Export input file for CraFT
Two files are creating using this function :
1. The `.vtk` of the microstructure where the each pixel of the same grain as the same integer value.
2. A `.phase` that is a text file where the orientation value are stored $[grainId, material, \phi_1, \phi, \phi_2]$. $\phi_2$ is choosen randomly as it is unknown. If $\phi_1, \phi$ are note resolved by the analyser they are also choosen randomly.
Two files are created using this function :
1. The `.vtk` of the microstructure where the each pixel of the same grain has the same integer value.
2. A `.phase` that is a text file where the orientation values are stored $[grainId, material, \phi_1, \phi, \phi_2]$. $\phi_2$ is choosen randomly as it is unknown. If $\phi_1, \phi$ are not resolved by the analyser, they are also choosen randomly.
%% Cell type:code id:governing-parallel tags:
%% Cell type:code id: tags:
``` python
data.aita.craft('granular',res=0.5)
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment