Skip to content

[BUG]: display of Pol_FieldBox is wrong #2665

Description

@ebknudsen

Describe the bug
The display section of Pol_FieldBox component does not correspond to the geometry of the field simulated.
Instead some kind of rhomboid prism is drawn

The box simulated is centered on the origin and aligned with the principal axis - the coordinates of the lines drawn are simply wrong.

Screenshots
If applicable, add screenshots to help explain your problem.
Image

OS and McStas/McXtrace version (please complete the following information):

  • OS: Linux
  • McCode variant: McStas
  • Version: 3.8.5

Add your code / dataset
/*******************************************************************************

  • Instrument: fieldbox
    *******************************************************************************/
    DEFINE INSTRUMENT fieldbox(L=1)

TRACE

COMPONENT origin = Progress_bar()
AT (0, 0, 0) RELATIVE ABSOLUTE

COMPONENT pfbox = Pol_FieldBox(
xwidth = 0.1, yheight = 0.1, zdepth = L)
AT( 0,0,0) RELATIVE origin

FINALLY
%{
%}

END

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions