cherab / core

The core source repository for the Cherab project.
https://www.cherab.info
Other
45 stars 24 forks source link

Plasma inside/outside simulation tests #4

Closed mattngc closed 7 years ago

mattngc commented 7 years ago

screenshot from 2017-09-27 10-42-07 screenshot from 2017-09-27 10-42-20

CnlPepper commented 7 years ago

Hi Matt,

please revert #0e47119. The issue is addressed at the data preparation phase by configuring the plasma density to mask off regions outside the LCFS using the Blend2D function. For example:

unmasked_density = Isomapper2D(psi_function, density_profile) density = Blend2D(Constant2D(0.0), unmasked_density, inside_lcfs)

This will return 0.0 outside the LCFS and the correct density profile inside.

Best regards,

Alex

CnlPepper commented 7 years ago

This code should go in user scripts and objects preparing plasma nodes, rather than core.

mattngc commented 7 years ago

Resolved by using new Blend2D class. Psi interpolation change reverted.