CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   continuing writing in more than one line in groovyBC (http://www.cfd-online.com/Forums/openfoam-solving/109999-continuing-writing-more-than-one-line-groovybc.html)

immortality December 2, 2012 16:03

continuing writing in more than one line in groovyBC
 
How can write the variables in more than one line in groovyBC?
I have to write a lot of variables,please give me a suggest.
thanks.:rolleyes:

gschaider December 2, 2012 18:08

Quote:

Originally Posted by immortality (Post 395317)
How can write the variables in more than one line in groovyBC?
I have to write a lot of variables,please give me a suggest.
thanks.:rolleyes:

For some time (I'm not sure but I think it even pre-dates swak4Foam) it is supported to write variables in string-lists: instead of
Code:

variables "a=1;b=2;";
you can write something like
Code:

variables (
  "a=1;"
  "b=2;"
);


immortality December 3, 2012 04:54

thank you.its correct.


All times are GMT -4. The time now is 18:59.