Commit Graph

322 Commits

Author SHA1 Message Date
Stephen Mardson McQuay
9836fdcbfe added files. still not consistently getting better numbers 2010-03-18 23:32:24 -06:00
Stephen Mardson McQuay
b33159f8a9 working on getting baker to work in 3D. the code runs, but the numbers are odd. I suspect the rectangular grid, and am going to try a random cloud of points. 2010-03-18 23:18:59 -06:00
Stephen Mardson McQuay
a2d7b3f063 updated library files so that i don't have to edit the __init__.py files
--HG--
rename : lib/baker/__init__.py => lib/baker/baker.py
rename : lib/grid/__init__.py => lib/grid/grid.py
2010-03-08 14:30:22 -07:00
Stephen Mardson McQuay
b9ea6a3ac2 modified code to use Distribute (python's distribution framework)
one should simply run `python setup.py install` to install these librarires
2010-03-08 13:31:51 -07:00
smcquay@cfdviz2
c5d8fff883 moved some files around to conform to python best practicies
--HG--
rename : lib/baker.py => lib/baker/__init__.py
rename : lib/tools.py => lib/baker/tools.py
rename : lib/grid.py => lib/grid/__init__.py
rename : lib/smcqdelaunay.py => lib/grid/smcqdelaunay.py
2010-03-08 13:05:42 -07:00
Stephen Mardson McQuay
9a1b8d14b2 finally added proper (in my opinon) exception handling to the grid's run_baker method. it should properly autocorrect, and switch the extra point lookup scheme to connectivity-based if solving the system of equations yields a singular solution 2010-03-05 08:58:07 -07:00
smcquay@cfdviz2
a25e6d03d1 partially implemented using new data structure in point lookup
I spoke with Dr. Gorrell about first trying to call the nearest-neighbor routine, releasing the trapped exception where the matrix ends up being singular, and trapping it in the grid object's run_baker, where I could then call the connectivity-based lookup routine. Those are my next steps, as well as starting to think about pushing the 3D front ahead this week.
2010-02-26 14:44:29 -07:00
Stephen Mardson McQuay
2792329eaa cleaned up the method (removed print statements) i'm ready to now add this method as an option to the mesh object 2010-02-21 20:52:51 -07:00
Stephen Mardson McQuay
a3d72ed200 wrote the method that returns grid objects based on connectivity
I'm going to hurry and clean up this method, but for now it is verbose, and uses sets. i'm going to just check it in for future reference
2010-02-21 20:42:32 -07:00
Stephen Mardson McQuay
0ef6897aee made a simplex class, going to move this into the face class to simplify 2010-02-21 19:02:45 -07:00
smcquay@cfdviz2
6c4c6d4cfe moved teh grid code into the grid class
by next friday i need to have implemented a way to select between normal kdtree point lookups, and nearest-neighbor lookups. Hopefully i'll have that done tonight.
2010-02-20 13:18:24 -07:00
Stephen Mardson McQuay
2cf9a0b574 mostly fixed a bug in my qdelaunay parsing. implemented a blender viewer ... mostly
the qdelaunay app doesn't alway display all faces for a point. lame. I worked around it by creating the point-> face relationships manually.

There is a max recursion something happeneing when I try to save so pickle. look into this.

I spent some time writing a visualizer for blender. 10 lines of code. simple stuff.

next steps would be to move the KDTree into the mesh object. GOOD LUCK (me)!!

--HG--
rename : bin/grid_driver.py => bin/grid_random.py
rename : bin/grid_driver.py => bin/grid_regular.py
2010-02-14 20:56:41 -07:00
Stephen Mardson McQuay
9ff48f4c12 minor: added point to facet information to the grid object
I really think that I need to create my own point object, and hang the facet information directly off of that. right now there are simply parallel arrays for q, numpy.array(x,y), and {point_index: [adjacent faces]} ...

work to be done!
2010-02-10 00:20:06 -07:00
Stephen Mardson McQuay
9064663600 added face information to the grid. i need to parse and add point->face information ... somehow ... 2010-02-07 20:23:19 -07:00
Stephen Mardson McQuay
50daeb5d74 getting stuff from qdelaunay
mostly spent time trying to figure out subprocess (which i though i already understood). I am concerned for what will happen with large datasets.

next steps include:
1) design data struture
2) implement slurping of stdout into this structure
3) drink coke

--HG--
rename : lib/smcqhull.py => lib/smcqdelaunay.py
2010-02-07 00:01:02 -07:00
Stephen Mardson McQuay
f9973e7580 minor, updated the driver to handle linear case 2010-01-31 21:15:47 -07:00
Stephen Mardson McQuay
0f4daa9a9c fixed a little bug and getting good results again. still will have problems if you try to simply get a linear interpolation 2010-01-31 21:10:37 -07:00
Stephen Mardson McQuay
2113abb8dc minor: updated the .setup file 2010-01-31 20:51:25 -07:00
Stephen Mardson McQuay
80720c45fe MAJOR: updated the baker method. it's more generic, and should allow me to 3D-ifiy it more simply. a ton of other things 2010-01-31 20:47:03 -07:00
Stephen Mardson McQuay
98b13fb8c5 merged the drivers, and am investigating the qdelauney manpage ... should've done this earlier :P
--HG--
rename : bin/driver-random.py => bin/driver.py
rename : test/utest.py => test/qhull.test.py
2010-01-30 12:15:00 -07:00
Stephen Mardson McQuay
f4b2c95cf5 working on adding 3D baker. also starting to massage together a good baker method test (2D), and added a stub file for 3D testing 2010-01-29 11:56:52 -07:00
Stephen Mardson McQuay
961b3b7b26 init 2009-12-27 10:48:27 -07:00