Re: [Gmsh] Step model view export as png from command line/script

2020-08-25 Thread SAHA, SUDIPTA
Yes, this can be done by 'gmsh' command from the terminer. typically you have 
to run gmsh by : gmsh filename.geo -  ​('-' will invoke the command mode 
operation). Now you filename.geo script should contain necessary lines for the 
desired performance. For example, if you want to construct 3D mesh, 
corresponding line is Mesh 3. Similarly you can export files by putting 
'export' command in the script. The lists are given in the manual.


__

Best Regards
Sudipta Saha, MS, EIT
Spent Fuel Modeling Intern, Idaho National Laboratory

PhD Candidate in Mechanical Engineering
Reacting System and Advanced Energy Research Lab
Graduate Council Representative, Graduate Student Association
LinkedIn | 
ResearchGate | 
GoogleScholar | 
Website
[cid:1e48987d-8de0-480d-b063-0d08635af1b4]




From: gmsh  on behalf of Zuheyr 
Alsalihi 
Sent: Tuesday, August 25, 2020 2:03 PM
To: gmsh@onelab.info 
Subject: [Gmsh] Step model view export as png from command line/script


Dear Gmsh creators,

Forever grateful for providing us with this fabulous tools and all your effort 
in support.

I am working with gmsh without user interface in an optimization process where 
everything is driven with command line gmsh options in shell scripts.

I just want to load the step files, export the resulting view, what I would 
have seen if I were working with gmsh with display, to png file, and that is it.

Can I do that?

Thank you very much for reading.
Best regards.

___
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh


[Gmsh] Step model view export as png from command line/script

2020-08-25 Thread Zuheyr Alsalihi
Dear Gmsh creators,

Forever grateful for providing us with this fabulous tools and all your effort 
in support.

I am working with gmsh without user interface in an optimization process where 
everything is driven with command line gmsh options in shell scripts.

I just want to load the step files, export the resulting view, what I would 
have seen if I were working with gmsh with display, to png file, and that is it.

Can I do that?

Thank you very much for reading.
Best regards.

___
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh


Re: [Gmsh] Question about adding new solver in onelab

2020-08-25 Thread Cean Wang
I opened myinput.dat with gmsh and clicked on my solver to solver it, got a message saying: Calling ‘“d:\mysolver.exe” -onelab “mysolver” 127.0.0.1:53927’Abnormal server termination(Socket listening timeout on socket 127.0.0.1:0) I was expecting something like Calling ‘“d:\mysolver.exe myinput.dat”. Like run in an terminal. Just wondering does a normal solver exe could be called directly? Or have to be modified like the Double pendulum in C++ demo solver? But my solver is an Fortran program.  From: Max OrokSent: Tuesday, August 25, 2020 8:18 PMTo: cean wangCc: GmshSubject: Re: [Gmsh] Question about adding new solver in onelab It's in the options list, to get to the list: Open Gmsh -> Help -> Current Options and WorkspaceEdit the value  

___
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh


Re: [Gmsh] Does BooleanUnion works on surfaces?

2020-08-25 Thread Marco Antolovic
 Good morning Christophe,
it's quite a complex behavior but indeed it works.
Thanks for the explanation,
Marco


Il lunedì 24 agosto 2020, 09:35:26 CEST, Christophe Geuzaine 
 ha scritto:  
 
 

> On 23 Aug 2020, at 21:40, Marco Antolovic  wrote:
> 
> Hi all,
> 
> while I was building a geometry I came across an unexpected behavior of the 
> BooleanUnion operator.
> 
> I assumed that the operator would work on surfaces but it does not. If you 
> try the example below, the union result is going to be two separate surfaces
> 
> SetFactory("OpenCASCADE");
> 
> recta1=newreg;
> Rectangle ( recta1 ) = { -.02, -.030, 0, .005, 0.01};
> recta2=newreg;
> Rectangle ( recta2 ) = { -.015,  -.020, 0, .005, -0.01 };
> 
> resulting_surface() = BooleanUnion{ Surface{recta1}; Delete;}{ 
> Surface{recta2}; Delete;};
> 
> For i In {0: #resulting_surface()-1}
> Printf ("test openCASCADE surface union = %g", resulting_surface(i));
> EndFor
> 
> The example shows that resulting_surface() contains two elements instead of 
> one.
> 
> Does BooleanUnion works on surfaces?

It does actually work as expected: the 2 surfaces are glued by the union 
operation (by curve 2); but indeed OpenCASCADE leaves the internal curve in the 
final geometry.

Recent versions of Gmsh introduced the "Geometry.OCCUnionUnify" option to try 
to remove internal seams when the two surfaces are on the same geometry. In 
your case you should define the two surfaces in the same plane (the second is 
reversed, i.e. you should define Rectangle ( recta2 ) = { -.015,  -.030, 0, 
.005, 0.01 };), and we will generate a new surface without internal curve.

Also note that you might want to se "Geometry.OCCBooleanPreserveNumbering = 0;" 
in this case. Because since the actual union operation keeps the two surfaces, 
the "Delete" operation would not be taken into account.

So, long story short:

SetFactory("OpenCASCADE");
recta1=newreg;
Rectangle ( recta1 ) = { -.02, -.030, 0, .005, 0.01};
recta2=newreg;
Rectangle ( recta2 ) = { -.015,  -.030, 0, .005, 0.01 };
Geometry.OCCUnionUnify = 1;
Geometry.OCCBooleanPreserveNumbering = 0;
resulting_surface() = BooleanUnion{ Surface{recta1}; Delete;}{ Surface{recta2}; 
Delete;};

Christophe



> 
> Many thanks,
> 
> Marco
> ___
> gmsh mailing list
> gmsh@onelab.info
> http://onelab.info/mailman/listinfo/gmsh

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


  ___
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh


Re: [Gmsh] Question about adding new solver in onelab

2020-08-25 Thread Max Orok
It's in the options list, to get to the list:
Open Gmsh -> Help -> Current Options and Workspace
Edit the value

[image: image.png]

To save for next time:
Tools->Options->Save options on exit

[image: image.png]

Sincerely,
Max


On Tue, Aug 25, 2020 at 12:35 AM cean wang  wrote:

> Where is the "Solver.AutoMesh = 0" option?
>
> ___
> gmsh mailing list
> gmsh@onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>


-- 
Max Orok
Contractor
www.mevex.com
___
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh