
Hi Logan,
Logan Sorenson wrote:
Hi Robert,
On Wed, Oct 14, 2009 at 4:58 AM, Robert Cimrman <cimr...@ntc.zcu.cz>
Awesome! Thanks for starting that, a good documentation is essential for attracting potential users/contributors.
Yes, definitely good documentation is very helpful. Actually, one of the main reasons I like SfePy is the clear instructions and examples on the google page. :) I hope I can eventually contribute some tutorials/examples. By the way, what do you use to generate your meshes? I've been using gmsh which seems pretty good, but I was wondering if it's possible to define groups and regions in there for export to Sfepy.
Thanks, you are too kind here, the google page lags behind the code in some areas. But it gives the idea, I hope.
For simple meshes (block, tube) I use the blockgen.py and cylindergen.py in 'scripts/'. For complex meshes I usually bugger people around my department who use commercial programs. So I do not know gmsh much. But I made a gmsh script that defined element groups, see the attachment. Use something like:
os.system("gmsh -2 %s -format mesh" % 'mesh.geo') os.system("script/mesh_to_vtk.py %s %s" % ('mesh.mesh', 'mesh.vtk'))
It seems that each Plane Surface in mesh.geo gets a different group id.
Ok, I found the problem. According to [3], the issue is the leading underscore, which has special meaning on github, in the _static and _sources directory names. After checking Ondrej's examples, I found the sphinx-to-github script, which you can get from [4]. The script just strips the underscore from these directories and any references. So you can check the site at [1] and it should be working now. :)
Now that clearly shows how my memory is bad - I recall knowing about this issue :] Thanks for finding it out!
Ok, thanks for the warning, I'll leave sfepy.fem alone for now. I think once the code structure stabilizes, it should be quite easy to write the docs, since they will follow the same structure. I can make some placeholders with warnings in the areas that the code is rapidly changing. By the way, "make latex" is working here too. So I think eventually we can merge in your work on the generation of terms, but I guess we can take it as it comes.
Yes, a placeholder would do for the moment. I will transform the latex sources of sfepy manual to rst as soon as I have a spare moment.
[1] http://logansorenson.github.com/sfepy_doc2/ [2] git://github.com/logansorenson/sfepy_doc2.git [3] http://support.github.com/discussions/site/268-gh-pages-has-sub-dirs-but-the... [4] http://github.com/michaeljones/sphinx-to-github
cheers, r.
a = 1.000000; out = 0.200000; in = 0.050000; Point(1) = {-a,-a,0, out}; Point(2) = {-a,a,0, out}; Point(3) = {a, a,0, out}; Point(4) = {a,-a,0, out}; Point(5) = {0,0,0, in}; Line(1) = {1,4}; Line(2) = {4,3}; Line(3) = {3,2}; Line(4) = {2,1}; Line Loop(1) = {2,3,4,1}; r = 0.100000; Point(6) = {r,0,0, in}; Point(7) = {0,r,0, in}; Point(8) = {-r, 0,0, in}; Point(9) = {0,-r,0, in}; Circle(6) = {6,5,7}; Circle(7) = {7,5,8}; Circle(8) = {8,5,9}; Circle(9) = {9,5,6}; Line Loop(2) = {6,7,8,9}; r = 0.187500; Point(10) = {r,0,0, in}; Point(11) = {0,r,0, in}; Point(12) = {-r, 0,0, in}; Point(13) = {0,-r,0, in}; Circle(10) = {10,5,11}; Circle(11) = {11,5,12}; Circle(12) = {12,5,13}; Circle(13) = {13,5,10}; Line Loop(3) = {10,11,12,13}; r = 0.275000; Point(14) = {r,0,0, in}; Point(15) = {0,r,0, in}; Point(16) = {-r, 0,0, in}; Point(17) = {0,-r,0, in}; Circle(14) = {14,5,15}; Circle(15) = {15,5,16}; Circle(16) = {16,5,17}; Circle(17) = {17,5,14}; Line Loop(4) = {14,15,16,17}; r = 0.362500; Point(18) = {r,0,0, in}; Point(19) = {0,r,0, in}; Point(20) = {-r, 0,0, in}; Point(21) = {0,-r,0, in}; Circle(18) = {18,5,19}; Circle(19) = {19,5,20}; Circle(20) = {20,5,21}; Circle(21) = {21,5,18}; Line Loop(5) = {18,19,20,21}; r = 0.450000; Point(22) = {r,0,0, in}; Point(23) = {0,r,0, in}; Point(24) = {-r, 0,0, in}; Point(25) = {0,-r,0, in}; Circle(22) = {22,5,23}; Circle(23) = {23,5,24}; Circle(24) = {24,5,25}; Circle(25) = {25,5,22}; Line Loop(6) = {22,23,24,25}; r = 0.537500; Point(26) = {r,0,0, in}; Point(27) = {0,r,0, in}; Point(28) = {-r, 0,0, in}; Point(29) = {0,-r,0, in}; Circle(26) = {26,5,27}; Circle(27) = {27,5,28}; Circle(28) = {28,5,29}; Circle(29) = {29,5,26}; Line Loop(7) = {26,27,28,29}; r = 0.625000; Point(30) = {r,0,0, in}; Point(31) = {0,r,0, in}; Point(32) = {-r, 0,0, in}; Point(33) = {0,-r,0, in}; Circle(30) = {30,5,31}; Circle(31) = {31,5,32}; Circle(32) = {32,5,33}; Circle(33) = {33,5,30}; Line Loop(8) = {30,31,32,33}; r = 0.712500; Point(34) = {r,0,0, in}; Point(35) = {0,r,0, in}; Point(36) = {-r, 0,0, in}; Point(37) = {0,-r,0, in}; Circle(34) = {34,5,35}; Circle(35) = {35,5,36}; Circle(36) = {36,5,37}; Circle(37) = {37,5,34}; Line Loop(9) = {34,35,36,37}; r = 0.800000; Point(38) = {r,0,0, in}; Point(39) = {0,r,0, in}; Point(40) = {-r, 0,0, in}; Point(41) = {0,-r,0, in}; Circle(38) = {38,5,39}; Circle(39) = {39,5,40}; Circle(40) = {40,5,41}; Circle(41) = {41,5,38}; Line Loop(10) = {38,39,40,41}; Plane Surface(1) = {1,10}; Plane Surface(2) = {2}; Plane Surface(3) = {3,2}; Plane Surface(4) = {4,3}; Plane Surface(5) = {5,4}; Plane Surface(6) = {6,5}; Plane Surface(7) = {7,6}; Plane Surface(8) = {8,7}; Plane Surface(9) = {9,8}; Plane Surface(10) = {10,9}; Physical Surface(1) = {1}; Physical Surface(2) = {2,3,4,5,6,7,8,9,10};