Loosing groups with ECS

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Jérôme Ferrari

Loosing groups with ECS

Post by Jérôme Ferrari »

Hi all,
 
I have an old mesh in .UNV format with many volumetric groups (colors). I would like to convert the mesh in something usable by Salome or IcemCFD, so MED or CGNS would be fine, but I want to keep the volumetric groups somehow. (Salome 5.1.3 can import .UNV, but it loosses groups too)
 
I tried the following command with ecs 1.3.3, but none of them seems to keep the groups:

ecs -sc -m mesh.unv -case default -cgns -med
ecs -sc -m mesh.unv -grp-cel section -case default -cgns -med
ecs -sc -m mesh.unv -grp-cel zone -case default -cgns -med
 
Can you help me with that?
 
In  attachement is an example of what returns ecs in the terminal.
 
Cheers
Attachments
ecs.txt
(10.48 KiB) Downloaded 186 times
Yvan Fournier

Re: Loosing groups with ECS

Post by Yvan Fournier »

Hello,

Actually, groups and colors are distinct (both may be used), and the Preprocessor does not lose colors, but saves the as MED attributes. Salome's SMESH only handles groups correctly, not attributes, so the problem is currently in SALOME (though future versions of MED may remove attributes, as they may be replaced by groups).
 
To convert attributes to groups using the Preprocessor, you may use the following command with Code_Saturne 2.0 rc-1:
 
cs_preprocess -sc -m mesh.unv -case default --cgns --med --color-to-group
 
This option does not exist in version 1.3.
Jérôme Ferrari

Re: Loosing groups with ECS

Post by Jérôme Ferrari »

Thanks a lot Yvan,
you saved my week, it works perfectly. But the real command line for Code_Saturne 2.0 is:
cs_preprocess -sc -m mesh.unv --case default --cgns --med --color-to-group
Post Reply