CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Open Source Meshers: Gmsh, Netgen, CGNS, ... (http://www.cfd-online.com/Forums/openfoam-meshing-open/)
-   -   Character expressions in gmsh? (http://www.cfd-online.com/Forums/openfoam-meshing-open/72003-character-expressions-gmsh.html)

ericnutsch January 22, 2010 00:21

Character expressions in gmsh?
 
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?)


All times are GMT -4. The time now is 20:12.