Thamali |
October 11, 2014 01:22 |
nonuniform "valueExpression" in groovyBC
Dear foamers,
I want to put a groovyBC.I am trying to put a temperature boundary condition as initial temperature(time=0) is a nonuniform list of value and then it to change as "zeroGradient".
For that matter i have put it as follows;
Code:
type groovyBC;
valueExpression "nonuniform List<scalar>
100
(
565.739
672.48
723.233
745.909
760.789
772.353
782.215
791.12
799.475
807.515
815.367
823.091
830.699
838.167
845.449
852.482
859.198
865.532
871.431
876.864
881.819
886.311
890.374
894.061
897.434
900.562
903.516
906.366
909.178
912.017
914.941
918.004
921.256
924.744
928.51
932.594
937.035
941.874
947.155
952.928
959.255
966.221
973.935
982.552
992.288
1003.43
1016.38
1031.63
1049.74
1071.33
1096.91
1126.78
1160.77
1198.15
1237.6
1277.39
1315.64
1350.62
1381.02
1406.15
1426.01
1441.18
1452.58
1461.25
1468.06
1473.72
1478.75
1483.48
1488.15
1492.91
1497.86
1503.04
1508.48
1514.19
1520.16
1526.36
1532.76
1539.32
1546.01
1552.77
1559.55
1566.3
1572.96
1579.51
1585.87
1592.08
1598
1603.84
1609.27
1614.87
1619.74
1625.42
1629.46
1636.02
1638.3
1647.8
1645.39
1663.67
1648.38
1698.51 )"
;
gradientExpression "0";
fractionExpression "(time() == 0) ? 1 : 0";
this gives the following error;
HTML Code:
--> FOAM FATAL IO ERROR:
found '\n' while reading string "nonuniform List<scalar>..."
file: /home/thamali/OpenFOAM/thamali-2.2.2/run/tutorials/combustion/reactingFoam/latest/latestlatest/latestelatestlatest/1stcopy/0/T at line 29.
From function ISstream::read(string&)
in file db/IOstreams/Sstreams/ISstream.C at line 545.
FOAM exiting
So,I would like to know how to put this nonuniform "valueExpression" in groovyBC?
Using a data file or something like that?
Thanks a lot.
Thamali
|