Commit Graph

36 Commits

Author SHA1 Message Date
Rowan Cockett db694dd780 moved to mesh folder. 2013-10-18 17:22:13 -07:00
Rowan Cockett fb69446cfb Testing problem and DCProblem. 2013-10-03 15:15:08 -07:00
Rowan Cockett 7cf8ef2310 Moved testing code to the test directory. added __init__.py and some documentation. 2013-10-03 14:55:22 -07:00
Rowan Cockett e11a3ccf65 Bug Fixes in TensorView and test_utils
Updated ipnbs
2013-08-30 21:34:15 -07:00
Rowan Cockett b0760f577f Put utils in their own folder. Increases organization, and everything will be available under SimPEG.utils
NOTE: if you add a new function (or file), you must register it in __init__.py for it to be available under:

e.g.
...
from utils import mkvc, …
...
from MYNEWFILE import MYNEWFUNCTION
2013-08-09 17:30:57 -07:00
Rowan Cockett 43d2512aea Updated the test_operators code to work for LOM. need to be careful in which error metric you consider (because some only make sense under integration)
i.e. the l-2 norm rather than the infinity norm, and you need to multiply by the integration length/area/volume it you are looking at the l-2 norm.
2013-08-06 17:18:04 -07:00
Rowan Cockett 262aacce85 Update tests with new calls. Note that there seem to be problems with rotateLOM on some operator tests. 2013-08-06 15:09:01 -07:00
Rowan Cockett 4b545fb1b7 Cleaned up projection code and put it in LOM. 2013-08-05 17:16:01 -07:00
Rowan Cockett 83fe9df743 Ha. Not a bug, the test was wrong. Must project the components of the field. 2013-08-05 16:48:05 -07:00
Rowan Cockett 3d936e07a1 Edge Inner products in 2D NOTE: still has bugs. 2013-08-05 12:16:55 -07:00
Rowan Cockett e073eaeb8b Innerproduct work. Testing, visualization, and 2D - NOTE there are bugs in anything but a uniform LOM
Not very helpful yet!
2013-08-05 11:51:03 -07:00
Rowan Cockett e2e38074fc Order Test must incorporate different meshes. Current test fails, must support 2D mass matrices. 2013-08-04 07:56:25 -07:00
Rowan Cockett 26b334585f EdgeInnerProducts now working for LOM
Fixed DiffOps bug in CURL

Fixed bug in OrderTest --> must remember to do cumSum, and not just supply dx to ndgrid

test_massMatrices now tests uniformLOM
2013-08-03 16:39:34 -07:00
Rowan Cockett cc66eaf9fd Testing of LOM (comparing against Tensor Mesh) 2013-08-03 16:08:54 -07:00
Rowan Cockett 9ca9c20731 Modified innerProducts so they have defaults, and you have to explicitly ask for the projection matrices. 2013-08-03 13:57:00 -07:00
Rowan Cockett 34e380ccb9 edge and tangent calculating, along with testing functions. 2013-07-31 15:07:14 -07:00
Rowan Cockett b07256bbc5 Merge branch 'eldadswork' of https://bitbucket.org/rcockett/simpeg into LOM
Conflicts:
	SimPEG/utils.py
2013-07-31 11:30:57 -07:00
Rowan Cockett 4660b177a1 Names in tests. 2013-07-30 22:48:27 -07:00
Rowan Cockett 9573c6c230 Tested face and edge inner products for anisotropic, isotropic and tensor sigma. 2013-07-30 22:40:10 -07:00
Rowan Cockett c259a6651a Integrated getEdge/FaceInnerProduct into the tensor mesh class. 2013-07-30 22:12:53 -07:00
Rowan Cockett d8f646c7d9 Updates to OrderTest so that it runs random meshes. 2013-07-30 21:49:23 -07:00
Rowan Cockett fe547476c9 IndexCube now in Utils 2013-07-26 15:56:21 -07:00
Rowan Cockett 5c83095781 Minor changes and comments. 2013-07-26 14:30:04 -07:00
Rowan Cockett 90bf6d3139 Refactored and cleaned up code. 2013-07-26 13:56:05 -07:00
Rowan Cockett 4186d9b5d0 Merge branch 'master' of https://bitbucket.org/rcockett/simpeg into eldadswork 2013-07-26 12:12:06 -07:00
Rowan Cockett 150cbc7df3 Test for edge inner products working. 2013-07-26 12:11:45 -07:00
ehaber99 87331c4c92 mass matrices for anisotropic sigma 2013-07-26 11:22:52 -07:00
Rowan Cockett 8ed0fd116e Added a reshape class. This is useful if you want to quickly go from a vector to a matrix, or you want a single component of a unshaped vector.
Has documentation and tests included.
2013-07-24 11:36:53 -07:00
Lars Ruthotto 50f40c743d added comments 2013-07-22 15:12:34 -07:00
Rowan Cockett f86ebe12db Added Poisson Equation Tests.
Forwards and Backwards.
2013-07-22 13:40:18 -07:00
Rowan Cockett d0efdb509c Created an OrderTest class
This creates a testable framework so that we can easily test order of convergence on things like operators by just writing the guts of the code.

Merged Seogi's code into this framework.
2013-07-22 12:26:17 -07:00
Rowan Cockett f626cedfb8 Bug fixes to do with array sizes.
Incorporated eldads outer product code
2013-07-19 11:24:14 -07:00
Rowan Cockett 1c48365497 Rename based on conventions discussed in meeting. 2013-07-18 14:03:41 -07:00
Rowan Cockett ef557beb84 Merged Seogi's code into the Tensor Mesh code base.
This is under the DiffOperators class, which can be inherited with BaseMesh to any Mesh Object.

Cell area and other dimension calculations are included in the TensorMesh class.

Wrote unit tests for cell vol, area, and edges.
2013-07-18 10:41:58 -07:00
SEOGI KANG 082df8f110 Testing differential operators (Div, Grad, Curl) 2013-07-17 15:03:56 -07:00
Lars Ruthotto 09b12ca52d renamed folder 'code' to 'SimPEG'
new folder for ipython notebooks
improved 2D plots
2013-07-12 14:21:58 -07:00