Re: [Gmsh] ?==?utf-8?q? ?==?utf-8?q? ?= Step model view export as png from command line/scrip

2020-08-26 Thread Zuheyr Alsalihi

Thank you Jeremy, indeed this works...  and only this works. 
Thank you!
Best regards, Zuheyr
On Wednesday, August 26, 2020 12:26 CEST, Jeremy Theler  
wrote:
 On Wed, 2020-08-26 at 11:50 +0200, Zuheyr Alsalihi wrote:
> I was running the online version with an executable without display,
> and I get:
> < deleted merging info >
> Info : Done reading 'Walls_Unit__0__Wall__6.step'
> Info : Writing 'test.png'...
> Error : Unknown output file format
> Info : Done writing 'test.png'
> Info : Done reading 'gmsh_view.geo'
> Info : Stopped on Wed Aug 26 11:14:36 2020
> Info : No current model available: creating one
>
> I thought maybe the no-display version of gmsh I compiled was not
> using some libraries, I used the one with display
> using "-" as Saha indicated:
>
> gmsh.exe gmesh_view.geo -
>
> It gives:
> Info : Done reading './Walls_Unit__0__Wall__6.step'
> Info : Writing './test.png'...
> Error : Creating './test.png' requires a graphical interface
> context


Add an Exit instruction in the .geo and call it without the '-'

--
jeremy theler
www.seamplex.com


 


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


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

2020-08-26 Thread cean wang
Sorry last post seems not working. It says An HTML attachment was
scrubbed..., So I try to post with another email program. Here it is.



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 Orok 
*Sent: *Tuesday, August 25, 2020 8:18 PM
*To: *cean wang 
*Cc: *Gmsh 
*Subject: *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 Workspace

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


Re: [Gmsh] ?= Step model view export as png from command line/scrip

2020-08-26 Thread Jeremy Theler
On Wed, 2020-08-26 at 11:50 +0200, Zuheyr Alsalihi wrote:
> I was running the online version with an executable without display,
> and I get:
> < deleted merging info >
> Info: Done reading 'Walls_Unit__0__Wall__6.step'
> Info: Writing 'test.png'...
> Error   : Unknown output file format
> Info: Done writing 'test.png'
> Info: Done reading 'gmsh_view.geo'
> Info: Stopped on Wed Aug 26 11:14:36 2020
> Info: No current model available: creating one
> 
> I thought maybe the no-display version of gmsh I compiled was not
> using some libraries, I used the one with display
> using "-" as Saha indicated:
> 
> gmsh.exe gmesh_view.geo -
> 
> It gives:
> Info: Done reading './Walls_Unit__0__Wall__6.step'
> Info: Writing './test.png'...
> Error   : Creating './test.png' requires a graphical interface
> context


Add an Exit instruction in the .geo and call it without the '-'

--
jeremy theler
www.seamplex.com




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


Re: [Gmsh] ?==?utf-8?q? ?==?utf-8?q? ?= Step model view export as png from command line/scrip

2020-08-26 Thread Zuheyr Alsalihi

I was running the online version with an executable without display, and I get:
< deleted merging info >
Info    : Done reading 'Walls_Unit__0__Wall__6.step'
Info    : Writing 'test.png'...
Error   : Unknown output file format
Info    : Done writing 'test.png'
Info    : Done reading 'gmsh_view.geo'
Info    : Stopped on Wed Aug 26 11:14:36 2020
Info    : No current model available: creating one

I thought maybe the no-display version of gmsh I compiled was not using some 
libraries, I used the one with display
using "-" as Saha indicated:

gmsh.exe gmesh_view.geo -

It gives:
Info    : Done reading './Walls_Unit__0__Wall__6.step'
Info    : Writing './test.png'...
Error   : Creating './test.png' requires a graphical interface context
Info    : Done writing './test.png'
Info    : Done reading './gmsh_view.geo'
Info    : Stopped on Wed Aug 26 11:42:32 2020

Thank you for reading.
Zuheyr

On Wednesday, August 26, 2020 11:21 CEST, "Zuheyr Alsalihi" 
 wrote:
  Dear Jeremy, 
When I ran online the command: gmsh.exe gmsh_view.geo 
. < deleted merging ... >

Info    : Writing 'test.png'...
Error   : Unknown output file format
Info    : Done writing 'test.png'
Info    : Done reading 'gmsh_view.geo'
Info    : Stopped on Wed Aug 26 11:14:36 2020
Info    : No current model available: creating one

No png file generated. 

Best regards, 
Zuheyr

On Wednesday, August 26, 2020 11:11 CEST, Jeremy Theler  
wrote:
 What does "I cannot create it online" mean?

--
jeremy theler
www.seamplex.com

On Wed, 2020-08-26 at 10:19 +0200, Zuheyr Alsalihi wrote:
> Thank you so much!!
>
> I am using a geo file with which I can create a png file using the
> display but I cannot create
> it online, could you please comment on this?
> I have taken the critical points from a post from Prof. Geuzaine's:
> Extract of the geo file:
>
> ...
> < deleted stuff for merging the step files >
> Merge "Walls_Unit__0__Wall__6.step";
> SetFactory("OpenCASCADE");
> // display stl mesh of CAD surfaces
> Geometry.Surfaces = 1;
> Geometry.SurfaceType = 0;
> // display curves as 3D cylinders
> Geometry.LineType = 2;
> // specify model rotation using Euler angles
> General.Trackball = 0;
> General.RotationX = 0;
> General.RotationY = 0;
> General.RotationZ = 0;
> // print image
> Print "test.png";
>
> Many thanks and best regards,
> Zuheyr
>


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


 


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


Re: [Gmsh] ?==?utf-8?q? ?==?utf-8?q? ?= Step model view export as png from command line/scrip

2020-08-26 Thread Zuheyr Alsalihi

Dear Jeremy, 
When I ran online the command: gmsh.exe gmsh_view.geo 
. < deleted merging ... >

Info    : Writing 'test.png'...
Error   : Unknown output file format
Info    : Done writing 'test.png'
Info    : Done reading 'gmsh_view.geo'
Info    : Stopped on Wed Aug 26 11:14:36 2020
Info    : No current model available: creating one

No png file generated. 

Best regards, 
Zuheyr

On Wednesday, August 26, 2020 11:11 CEST, Jeremy Theler  
wrote:
 What does "I cannot create it online" mean?

--
jeremy theler
www.seamplex.com

On Wed, 2020-08-26 at 10:19 +0200, Zuheyr Alsalihi wrote:
> Thank you so much!!
>
> I am using a geo file with which I can create a png file using the
> display but I cannot create
> it online, could you please comment on this?
> I have taken the critical points from a post from Prof. Geuzaine's:
> Extract of the geo file:
>
> ...
> < deleted stuff for merging the step files >
> Merge "Walls_Unit__0__Wall__6.step";
> SetFactory("OpenCASCADE");
> // display stl mesh of CAD surfaces
> Geometry.Surfaces = 1;
> Geometry.SurfaceType = 0;
> // display curves as 3D cylinders
> Geometry.LineType = 2;
> // specify model rotation using Euler angles
> General.Trackball = 0;
> General.RotationX = 0;
> General.RotationY = 0;
> General.RotationZ = 0;
> // print image
> Print "test.png";
>
> Many thanks and best regards,
> Zuheyr
>


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


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


Re: [Gmsh] ?==?utf-8?q? Step model view export as png from command line/script

2020-08-26 Thread Jeremy Theler
What does "I cannot create it online" mean?

--
jeremy theler
www.seamplex.com

On Wed, 2020-08-26 at 10:19 +0200, Zuheyr Alsalihi wrote:
> Thank you so much!!
> 
> I am using a geo file with which I can create a  png file using the
> display but I cannot create 
> it online, could you please comment on this?
> I have taken the critical points from a post from Prof. Geuzaine's:
> Extract of the geo file:
> 
> ...
> < deleted stuff for merging the step files >
> Merge "Walls_Unit__0__Wall__6.step";
> SetFactory("OpenCASCADE");
> // display stl mesh of CAD surfaces 
> Geometry.Surfaces = 1;
> Geometry.SurfaceType = 0;
> // display curves as 3D cylinders
> Geometry.LineType = 2;
> // specify model rotation using Euler angles
> General.Trackball = 0;  
> General.RotationX = 0;  
> General.RotationY = 0;  
> General.RotationZ = 0;  
> // print image
> Print "test.png";  
> 
> Many thanks and best regards,
> Zuheyr
> 


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


Re: [Gmsh] ?==?utf-8?q? Step model view export as png from command line/script

2020-08-26 Thread Zuheyr Alsalihi

Thank you so much!!

I am using a geo file with which I can create a  png file using the display but 
I cannot create 
it online, could you please comment on this?
I have taken the critical points from a post from Prof. Geuzaine's:Extract of 
the geo file:

...
< deleted stuff for merging the step files >
Merge "Walls_Unit__0__Wall__6.step";
SetFactory("OpenCASCADE");
// display stl mesh of CAD surfaces 
Geometry.Surfaces = 1;
Geometry.SurfaceType = 0;
// display curves as 3D cylinders
Geometry.LineType = 2;
// specify model rotation using Euler angles
General.Trackball = 0;                      
General.RotationX = 0;                      
General.RotationY = 0;                      
General.RotationZ = 0;                      
// print image                                
Print "test.png";      

Many thanks and best regards,
Zuheyr

On Tuesday, August 25, 2020 20:52 CEST, "SAHA, SUDIPTA"  
wrote:
  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 RegardsSudipta Saha, MS, EITSpent Fuel Modeling Intern, Idaho National 
Laboratory  PhD Candidate in Mechanical EngineeringReacting System and Advanced 
Energy Research LabGraduate Council Representative, Graduate Student 
AssociationLinkedIn | ResearchGate | GoogleScholar | Website   
  __
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