epraya.Meshtriangle#

Meshtriangle()#

Creates the baricentral mesh of triangles for the JCaltriangle, that calculates the contribution of the resonant fields and their intensities in the final spectrum. It is defined as an independent function because it can interfere with the ADAM algorithm monitoring of the variables.

Returns:

  • w1 (jax.np.array) – Vector of the points in the x direction of the grid.

  • w2 (jax.np.array) – Vector of the points in the y direction of the grid.

  • w3 (jax.np.array) – Vector of the points in the z direction of the grid.