CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] continuing writing in more than one line in groovyBC (https://www.cfd-online.com/Forums/openfoam-community-contributions/109999-continuing-writing-more-than-one-line-groovybc.html)

immortality December 2, 2012 15: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 17: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 03:54

thank you.its correct.


All times are GMT -4. The time now is 16:52.