How to read the coordinates of a grid in the ProblemGenerator function? #495
-
Hello everyone, I am new in athena++ and now studying it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The coordinates are located on the MeshBlock: In the jet problem generator, |
Beta Was this translation helpful? Give feedback.
The coordinates are located on the MeshBlock:
pcoord->x1v(i)
will work insideProblemGenerator()
.In the jet problem generator,
pco
is just the name given to the input to the boundary condition function. This could be called anything, but it doesn't actually live on the Mesh.