CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] Character expressions in gmsh?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 113
Rep Power: 17
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] Converting gmsh to OpenFoam Friendly OpenFOAM Meshing & Mesh Conversion 3 June 26, 2018 06:46
[swak4Foam] how can extend character limitation of expressions in groovyBC? immortality OpenFOAM Community Contributions 5 November 3, 2015 12:19
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56


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