ufsowa / mcdif

Monte Carlo based alghoritms used to simulate thermodynamic and kinetic properties of the alloys
3 stars 4 forks source link

opcja::find_intrface() #17

Closed ufsowa closed 7 years ago

ufsowa commented 8 years ago

Add function of opcja::find_intrface() to find position of interface

ufsowa commented 7 years ago

Base on concentration in phases.

Calculate total C in whole sample Cavg. Calculate C in rezervuars Crez. Calculate atomic % C in region and compare with Crez. :facepunch:

ufsowa commented 7 years ago

Still wrong. do_equi Must distinguish phases. Major component in region must be used.

First: find phase -> will give direction Second: choose type of atom due to proportion in phase Third: If Phase can not be determined, look at fluxex -> will give a direction Choose type of atom due to proportion in phase indicated be direction

:facepunch:

This simulate two things:

Vacancy change is due to off-stoichiometry Lattice relaxation, place where atom will appear/disappear due to vacancy creation/anihilation, must be due to direction of relaxation.

This direction is determined be strain vector in lattice. Moreover, every phase has their own strain vector Fs.

Fs is proportional to vacancy flux in the phase.

So not local strain vector fs is in interest but total in the phase Fs.

Questions:

ufsowa commented 7 years ago

Second question refers to matano Plane as a criterium. But maano plane in general, is not the same as a interface. For example, when flux of vacancies is assymetric.

So, I must stay with intrface criteria asa a concentration and use majority criterium, as a definition of phase.

But matano is defined for atoms.

In case of vacancies, this is real criterium.

ufsowa commented 7 years ago

First of all: make a test with majority component. Majority is wrong. But prportional to phase concentration is ok. :facepunch: