Creating 3D VTK and VTU

Hi,

I have the following geometric data, and I need to create a VTK file.
nlay, ncol, nrow, delr, delc, top(layered), bot(layered)

Thanks in advance,

Hi @ABAM ,

I’m afraid you need to provide more information about what you are trying to achieve.

Best,

Hi @mwestphal,

I have the following data, and I need to create VTk and VTU file based on the given data in the attached file
geometry data.txt (6.0 KB)

Thanks,

@mwestphal

The following is the definition of each abbreviation in the file.

nlay: is the number of layers
nrow: is the number of rows
ncol: is the number of columns
delr: is the column spacing in the row direction.
delc: is the row spacing in the column direction.
top: is the top elevation for each cell in the top model layer.
botm: is the bottom elevation for each cell.

This looks like a custom data format, the simplest would be to read it using a programmable source. You can find such an example here:

https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#reading-a-csv-file

Of course, you will need to adapt that to you file and needs.