Giter Club home page Giter Club logo

Comments (2)

xmhk avatar xmhk commented on August 20, 2024

(i guess this is the wrong repository; the sechfield function is filed under 'optictools')

To be clear, this function calculates the fwhm of the power profile (P proportional to |E|^2) of an electrical field with the shape
E(T) = sech( T/ T0)

the half-width-at-half-maximum (with respect to power) can be calculated from:
1/2 sech^2(T=0) = sech^2(T/T0)
<=>
1/sqrt(2) * sech( T=0) = sech(T/T0)
=1/sqrt(2) * 1 = sech(T/T0) = 1/cosh(T/T0)
<=> T/T0 = arcosh(sqrt(2)) = 0.8813735...

tau_fwhm = 2 * T = 2 * 0.881375 * T0

with the identities
arcosh(x) = ln ( x+sqrt(x^2-1)) and arcsinh = ln( x+sqrt(x^2+1))

you find tau_fwhm = 2 * arcsinh(1) * T0 = 2 * arcosh( sqrt(2) ) * T0 = 2 * arcsech( 1/ sqrt(2)) * T0

PS: have a look at https://en.wikipedia.org/wiki/Inverse_hyperbolic_function and
http://www.rp-photonics.com/sech2_shaped_pulses.html

from gnlse.

anates014 avatar anates014 commented on August 20, 2024

Point 1: Yes, wrong repository, thanks.
Point 2: Ok, I thought that it is the FWHM of the intensity, and not the power. In this case the current value is correct.

from gnlse.

Related Issues (2)

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.