Skip to content

Add Parasolid model support#80

Draft
usmanriaz07 wants to merge 11 commits intomasterfrom
parasolidModelSupport
Draft

Add Parasolid model support#80
usmanriaz07 wants to merge 11 commits intomasterfrom
parasolidModelSupport

Conversation

@usmanriaz07
Copy link
Copy Markdown
Collaborator

This PR:

  • adds Parasolid geometric model support to M3DC1.
    • this is done by enabling PUMI model .dmg support in M3DC1.
    • see section 3.5 in the M3DC1 document to convert Parasolid geometry into PUMI model .dmg and mesh .smb.
    • to load the updated model, just define the name of model file using the parameter mesh_model which is the same parameter that is used for regular .txt model.
    • an additional file containing some of the model information is defined using model_info. This will be generated by the routine that prepares PUMI model and mesh from Simmetrix model and mesh.
    • Example:
      mesh_filename = 'STAR.smb'
      mesh_model = 'STAR.dmg'
      model_info = 'STAR_modelInfo.txt'  
    
  • To compile M3DC1, update SCOREC_DIR in stellar.mk (only available on Stellar for testing). Replace the following block:
ifdef SCORECVER
  SCOREC_DIR=$(SCOREC_BASE_DIR)/$(SCORECVER)
else
  SCOREC_DIR=$(SCOREC_BASE_DIR)
endif

with

/projects/M3DC1/SCOREC/install/m3dc1_scorec/2026-02-17

Example STAR Test case (just model and mesh files) is provided in:
/projects/M3DC1/SCOREC/examples/2026_02_18_UpdatedModel_STAR

usmanriaz07 and others added 10 commits February 27, 2026 08:50
the model. The remaining model based operations need to be modified yet
for compatibility.
model can only holf adjacency information. Some geometric information is
added to model_info file. Reading the data and storing it to model class.
… loop

has been added. It supports two model types (0 = innermost, 1 = outermost).
More options can be added in future if needed.
…d m3dc1_mfmgen, 2 for .dmg models from sim_meshgen) has been added
…m3dc1_model_getgeometricloop()` for consistency.

Also, support to other model types (.txt files) has been added to `m3dc1_model_getgeometricloop()`.
…w it's the boundary type (first wall, domain boundary, or other)
…of edges

Added bounds check on assigning boundary type to edges when using dmg model
@usmanriaz07 usmanriaz07 force-pushed the parasolidModelSupport branch from 75b26c1 to 89b871e Compare February 27, 2026 13:51
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.

2 participants