CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Character expressions in gmsh?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 22, 2010, 00:21
Red face Character expressions in gmsh?
  #1
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 112
Rep Power: 7
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
How does one define a character expression then call it in gmsh?

This code works:
var=55;
Printf ("the variable is %g", var);

This code doesnt:
var="fish";
Printf ("the variable is %s", "fish");

I have had zero luck with Sprintf

I have considered that I am asking too much of the gmsh code, but it doesnt make sense for all the options and functions to be there if character expressions cant even be printed to the screen. Thoughts?

Thanks for your help!


(does it bother any one else that gmsh strings are really arrays and gmsh character expressions are really strings?)
ericnutsch is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CAD -> gMsh -> enGrid -> OpenFOAM Problem AlGates OpenFOAM 7 August 6, 2010 12:46
Error converting Gmsh mesh to OpenFOAM format Martin_ OpenFOAM Meshing & Mesh Conversion 3 December 9, 2009 10:35
gmsh to openfoam sarajags_89 OpenFOAM 1 October 8, 2009 05:15
How does Gmsh deal with overlap boundaries? yuhai Open Source Meshers: Gmsh, Netgen, CGNS, ... 1 April 24, 2009 13:34
Cel expressions for trasient problem Jervds CFX 0 March 4, 2008 11:03


All times are GMT -4. The time now is 14:10.