Skip to content

how to generate vtk file for radial geometry ? #42

Answered by acroucher
medhay36 asked this question in Q&A
Discussion options

You must be logged in to vote

If you want VTK output from a radial model, you will need to create a dummy rectangular geometry representing a vertical slice through your radial grid. You can then use the same methods for VTK output as in the 3-D case.

For example if dr is a list or array of your radial block sizes and dz is a list or array of the vertical layer thicknesses, then:

  geo = mulgrid().rectangular(dr, [1.], dz)

will create a rectangular geometry with the radial block sizes in the x direction and the layer thicknesses in the z direction (the y direction is a dummy and is not used).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@medhay36
Comment options

@acroucher
Comment options

Answer selected by medhay36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants