[Gmsh] save two *.msh files from the same *.geo

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sun Mar 10 09:42:33 CET 2013


On 05 Mar 2013, at 18:06, Paolo Tricerri <paolotricerri at gmail.com> wrote:

> Dear Christophe,
> 
> thanks for the reply and sorry for the late follow up. Save char-expression looks like the command I should use but what I am wondering is the following: if I have two physical volumes and I want to save one in one file and the other volume in a second *.msh file, is that possible to do with the Save command? I have not gotten this from the pdf manual.
> 

I think you could do this:

Physical Volume(1) = ...;
Save "file1.msh";
Delete Physicals;
Physical Volume(2) = ...;
Save "file2.msh";

Hope this helps,

Christophe


> Thanks again,
> 
> Paolo
> 
> 2013/2/6 Christophe Geuzaine <cgeuzaine at ulg.ac.be>
> 
> On 05 Feb 2013, at 02:13, Paolo Tricerri <paolotricerri at gmail.com> wrote:
> 
> > Dear Sirs,
> >
> > I would like to ask you the following: let's consider an FSI simulation, using one *.geo file I am able to generate the mesh for the solid and for the fluid part. As described in https://geuz.org/trac/gmsh/attachment/wiki/FSIMesh/aneurysm.geo the *.msh at the end of the meshing process should contain both the fluid and the solid domain in the same file. I would like to split them in two *.msh file without using another *.geo file where I "merge" the *.msh file that was generated by the first *.geo file. I have looked for commands on the manual but I have not found any.
> >
> > Have you ever tried the same? is there any possibility of doing this?
> >
> 
> Do you mean: 'Save "file.msh";' ?
> 
> 
> 
> 
> > Thanks,
> >
> > Paolo
> > _______________________________________________
> > gmsh mailing list
> > gmsh at geuz.org
> > http://www.geuz.org/mailman/listinfo/gmsh
> 
> --
> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science
> http://www.montefiore.ulg.ac.be/~geuzaine
> 
> 
> 
> 

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine