Page 1 of 1

Loosing groups with ECS

Posted: Tue Feb 23, 2010 12:32 pm
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

Re: Loosing groups with ECS

Posted: Wed Feb 24, 2010 1:34 pm
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.

Re: Loosing groups with ECS

Posted: Wed Feb 24, 2010 5:10 pm
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