Git Product home page Git Product logo

pygtm's People

Contributors

pymatj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pygtm's Issues

Detection of birefringes

Hi again,

a question regarding the sorting of the qs:

if np.abs(Cp_t1-Cp_t2) > qsd_thr: ## birefringence

this statement is used to detect birefringes for a layer and to decide if eq (13) or (15) is used for qualculation of the Cps.

I am wondering if the birefringes criterium for a single layer can't be done by checking for off-diagonal elements in the Euler-transformed epsilon 3x3 matrix?

in the best case one saves to calculate Cp_t1 and Cp_t2 and it would be also more simple and intuitive in my opinion.

Best

Daniel

sort berremann qi's according to (12)

Hi @pyMatJ ,

I am currently checking the GTM core code I stumbled a bit over this code here:

pyGTM/GTM/GTMcore.py

Lines 461 to 477 in 1f62af2

## sort berremann qi's according to (12)
if any(np.abs(np.imag(qsunsorted))):
for km in range(0,4):
if np.imag(qsunsorted[km])>=0 :
transmode[kt] = km
kt = kt + 1
else:
reflmode[kr] = km
kr = kr +1
else:
for km in range(0,4):
if np.real(qsunsorted[km])>0 :
transmode[kt] = km
kt = kt + 1
else:
reflmode[kr] = km
kr = kr +1

Shouldn't the if-else-case be within the for loop .
As I understood it, you need to sort according to the four cases:

  1. complex number with imaginary part >= 0: transmode[0]
  2. real number with >= 0: transmode[1]
  3. complex number with imaginary part < 0: reflmode[0]
  4. real number with < 0: reflmode[1]

Maybe you can check and tell me the idea of the current code.

Thanks

Daniel

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.