[Gmsh] combine two different msh-file in one window

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed Dec 1 09:14:24 CET 2010


Hi Andrey,

If your results are obtained on the same mesh, just "File->Open" the 
mesh, then "File->Merge" the two post-processing datasets. (Or, if you 
saved the datasets along the mesh in a single .msh file, just "File->Open").

If your results are obtained on two separate meshes, just "File->Open" 
the first mesh, "File->Merge" the first dataset; then "File->Open" the 
second mesh, followed by "File->Merge" with the second dataset.
(If the results are stored along with the mesh, just "File->Open" each one.)

File->Open creates a new model; File->Merge merges data into the current 
model.

By default, Gmsh only shows the current model. To show more use e.g. 
Tools->Visibility->Tree Browser.

Christophe

On 01/12/10 08:55, ?????? ??????? wrote:
> Hi, Mikhail.
>
> Thanks for your answer.
>
> I think that GMSH function “Merge” or something like could help me.
>
> I don’t want to interpolate results between time steps with GMSH. I want
> to visualize results for two different part of one computational area
> which correspond stationary mode.
>
> I calculate gas flow in one part, than use this output values as input
> values for calculate other part of area. After calculating all part of
> areas I want to visualize values in one picture.
>
> Andrey
>
> *From:*gmsh-bounces at ace20.montefiore.ulg.ac.be
> [mailto:gmsh-bounces at ace20.montefiore.ulg.ac.be] *On Behalf Of *Mikhail
> Titov
> *Sent:* Tuesday, November 30, 2010 3:42 AM
> *To:* gmsh at geuz.org
> *Subject:* Re: [Gmsh] combine two different msh-file in one window
>
> Andrey:
>
> Why would you like to visualize results in a single GMSH window? You can
> visualize each result independently using the same value range to get
> the same color scales and then stack images together.
>
> I doubt that you can interpolate results between time steps with GMSH.
> I’d adjust solver’s time stepping such that you get an output at least
> every second/minute/hour/whatever or just at certain check points for
> both objects so your solver won’t step over.
>
> If you really want to see both objects in a single GMSH window, I’d use
> something like perl to combine both mesh files section by section. Once
> you know number of nodes and elements in the first file, you can apply
> necessary offsets to those from the second file.
>
> Alternatively, you may consider adjusting your solver and dealing with
> both volume. You can still distinguish internally between them by using
> numerous tags for elements.
>
> Mikhail
>
> *From:*gmsh-bounces at ace20.montefiore.ulg.ac.be
> [mailto:gmsh-bounces at ace20.montefiore.ulg.ac.be] *On Behalf Of *??????
> ???????
> *Sent:* Friday, November 26, 2010 5:57 AM
> *To:* gmsh at geuz.org
> *Cc:* baumkorik at yandex.ru
> *Subject:* [Gmsh] combine two different msh-file in one window
>
> Dear GMSH community.
>
> Help me, please.
>
> May I combine and view two different *.msh-files with my post-processing
> results in one GMSH-window?
>
> This *.msh-files contains mesh, which correspond 2 different contacting
> volumes of one large geometrical area.
>
> Post-processing result in this *.msh-files contains different
> time-step’s results (but end time is equal) and different range of value
> of output parameter.
>
> If yes, May I use only GMSH-interface commands or I must to write some
> script ?
>
> Thanks for your reply.
>
> Zakharov Andrey
>
> PhD student
>
> BMSTU
>
>
>
> _______________________________________________
> 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