Add Parasolid model support#80
Conversation
75b26c1 to
89b871e
Compare
8011dfe to
ab549c4
Compare
|
@usmanriaz07 is this PR ready to merge? If so you should remove the draft status. If it is not ready, please clarify what work is remaining. |
ea221d6 to
1cf7cda
Compare
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
1cf7cda to
1984926
Compare
… in m3dc1. Set CAD=1 to use it
|
I just tested on Perlmutter GPU nodes. All regtests passed except adapt. |
|
Thanks Jin. I have never installed m3dc1_scorec on Perlmutter before, if you can share the instructions with me I can debug the issue myself. Or if possible can you please provide me more details of the failed test? Execution report before segmentation fault might help. |
|
Sure. First set up environment using cd Your-M3DC1-HOME Then go to "m3dc1_scorec" directory, and configure it with PETSC_DIR=/global/cfs/cdirs/mp288/jinchen/PETSC/production/petsc.20230606 cmake .. followed by "make install". then go to "unstructured" dir, build m3dc1 with "make all ARCH=perlmutter_gpu_gcc". |
|
@jchensw Thanks for the instruction. I don't have access to some of the directories so couldn't install m3dc1_scorec. I tried accessing the following directory but had no permission: I am not a part of group mp288, so my guess is I will need to be a part of this group to get access. |
|
permission is granted. pease try agian. |
|
Thanks Jin. I just compiled m3dc1_scorec and m3dc1 targets. And now running test cases. I will update here once I find out what's going wrong with the adapt test case. |
This PR:
.dmgsupport in M3DC1..dmgand mesh.smb.mesh_modelwhich is the same parameter that is used for regular.txtmodel.model_info. This will be generated by the routine that prepares PUMI model and mesh from Simmetrix model and mesh.SCOREC_DIRinstellar.mk(only available on Stellar for testing). Replace the following block:with
Try to look for the latest version of
m3dc1_scorecin/projects/M3DC1/SCOREC/install/m3dc1_scorec/and use it. They are organized in terms of dates.To make sure the code is not breaking for older
m3dc1_scorecinstalls, a flagCADis added. IfCAD=1at compilation time, them3dc1install needs the latest version of them3dc1_scorec. Otherwise, any version ofm3dc1_scorecis compatible. For example, to compilem3dc1_2dwith this option:Example STAR Test case (just model and mesh files) is provided in:
/projects/M3DC1/SCOREC/examples/2026_02_18_UpdatedModel_STAR