Outpur writer preferred

Hi,

Is there any option to obtain only outputs from preferred materials in 2D analysis? For example, I have a geometry mesh with 5 different materials’ polygon, but I only want the *.HDF5 output files for 2 materials, I don’t want that pyilth write HDF5 neither VTK files for the other 3 materials.

Thanks for your time.

Regards.

Yes, you can do this by setting the data fields to an empty list for those materials where you don’t want output. For example:

[pylithapp.problem.materials.toe.output]
writer = pylith.meshio.DataWriterHDF5
cell_info_fields = [density,mu,lambda]
cell_data_fields = []

This section from a .cfg file will set the output type to HDF5, and will output the listed cell_info_fields for this material. The data fields are set to an empty list, however. For those materials for which you want output, you can do something like:

[pylithapp.problem.materials.C0002G.output]
writer = pylith.meshio.DataWriterHDF5
cell_info_fields = [density,mu,lambda]
cell_data_fields = [stress, total_strain]

Cheers,
Charles

1 Like