Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we overlay multiple solutions and meshes? #150

Closed
sshiraiwa opened this issue Feb 8, 2021 · 5 comments
Closed

Can we overlay multiple solutions and meshes? #150

sshiraiwa opened this issue Feb 8, 2021 · 5 comments

Comments

@sshiraiwa
Copy link

I am wondering if one can generate a figure like this one https://mfem.org/img/gallery/nstxu_hhfw.png, which is made from two solutions and one mesh file, inside GLVis :-D?

@tzanio
Copy link
Member

tzanio commented Feb 8, 2021

The short answer is: "currently NO" :(

The long answer is that GLVis does support all the required tools -- computing grid function in a cutting plane, showing part of the mesh, etc. but it does not have a user interface to define and combine them, e.g. only one cutting plane is defined and can be manipulated.

It is always tricky where to draw the line between a fast/simple tool like GLVis and a more full-fledged vis environment as VisIt and ParaView 😁

@tzanio
Copy link
Member

tzanio commented Feb 8, 2021

That being said, you can totally visualize separate parts in separate windows

@tzanio
Copy link
Member

tzanio commented Feb 8, 2021

I wouldn't recommend it to everyone, but it also possible to hack GLVis for a particular plot. That's how this image was generated: https://glvis.org/img/gallery/tp-3d-ale-black.png

@psocratis
Copy link

@sshiraiwa , if you just need just visualization of 2 or more meshes/solution on the same window you can play the "parallel" trick. Something like this would do it

   for (int i = 0 ; i<nrsub; i++)
   {
      socketstream sol_sock(vishost, visport);
      sol_sock.precision(8);
      sol_sock << "parallel " << nrsub << " " << i << "\n";
      sol_sock << "solution\n" << *Meshes[i] << *gf[i] << flush;
   }

Thanks,

Socratis

@sshiraiwa
Copy link
Author

Hi all, Thank you for your suggestions and clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants