Skip to content

Conversation

@tomc271
Copy link
Collaborator

@tomc271 tomc271 commented Jun 25, 2025

Added a new method CylindricalCoordinatesToCartesian() on TokamakOptions class, which returns Cartesian coordinates x, y, z (as Field3D objects) calculated from the cylindrical coordinates Rxy and Zxy (Field2D objects) together with nz equally spaced points for the values of the toroidal angle.

method for converting to cartesian coordinates from cylindrical coordinates.

Add new struct Coordinates3D, to encapsulate (x,y,z) coordinates.
Add toroidal_angle field to TokamakOptions.
Iterate over all coordinate points.
so that there will be a toroidal point at pi/2.
…him to allow FakeMeshFixture to be used with default values for nx, ny, nz
@ZedThree
Copy link
Member

Looks like you just need to merge recent next in to fix the test failures

@dschwoerer
Copy link
Contributor

Could you mention why do you need this?
Is this only useful for you to cleanup the examples - if so could you demonstrate how that makes things easier?
Or is this generally useful, in which case it probably should be documented somehow?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants