Commit Graph

1965 Commits

Author SHA1 Message Date
Stein Dale
746e9d402d Added unit tests 2015-05-07 09:31:33 +02:00
Stein Dale
d03cd6ef4c Added unit tests
Added some unit tests for verification of result values.
2015-05-07 09:25:57 +02:00
Stein Dale
4d9753ecce Interface for element node and integration point results
Added interface for element node and integration point results.
2015-05-07 09:23:48 +02:00
Stein Dale
bd3758d026 Added part index parameter to RifOdbReader::resultItemCount()
Made sure that RifOdbReader::resultItemCount() takes part index into
account.
2015-05-06 13:32:14 +02:00
Stein Dale
5a3603bf43 Error message on file open
Added optional error string parameter to openFile(). Made sure that
exceptions are handled. Returning false on file open error.
2015-05-06 13:22:09 +02:00
Stein Dale
3bbe7ec2dd Removed enum
Removed enum for result position which now is replaced by a private enum
in the reader class.
2015-05-06 13:00:13 +02:00
Stein Dale
520823c267 Made result position enum private
Made enum RifOdbResultPosition private. Renamed it to PesPos.
2015-05-06 11:09:37 +02:00
Stein Dale
4f9f322f2e Refactored results metadata
Using two levels of maps for results metadata, with result positions on
the top level.
2015-05-06 10:22:45 +02:00
Stein Dale
06a6630cc8 Got rid of warnings
Added a couple of #pragma directives to get rid of warnings from
compilation of ODB API.
2015-05-06 09:59:24 +02:00
Stein Dale
2ddc6677ff Unit tests
Fixed wrong parameters in a couple of unit tests.
2015-05-06 09:49:07 +02:00
Stein Dale
5ad9cf80e3 Results per part instance
Improved reading of results. Made sure that field subsets for the
correct part instance are used. Keeping id to index maps for elements
and nodes, which are used when reading results. Note: Geometry must have
been read before reading results.
2015-05-06 09:47:19 +02:00
Stein Dale
64bbcc04f8 Reading element node and integration point fields
Implemented RifOdbReader::readScalarElementNodeField() and
RifOdbReader::readScalarIntegrationPointField(). Needs verification.
Test files with element nodal fields needed.
2015-05-05 09:41:59 +02:00
Stein Dale
d5eb383abd Results metadata
Building results metadata data member on metadata request.
2015-05-05 09:41:59 +02:00
Stein Dale
8a3763f4b3 Added openFile() and made some methods non-const. 2015-05-05 09:41:58 +02:00
Stein Dale
eb30a51e54 Cleaned up odb interface.
Cleaned up interface. openFile() must be called before getting metadata,
results, or geometry. Running unit tests for only one reader instance
for the test file.
2015-05-05 09:41:57 +02:00
Jacob Støren
20a8527607 Noderesults are now read and displayed
The legend is not updated etc, but this is a start
2015-05-04 18:16:57 +02:00
Jacob Støren
6ff5f406d5 GeoMech result selection Gui working 2015-05-04 13:33:25 +02:00
Jacob Støren
1522fe2514 Start on getting the Metadata into the GUI 2015-04-30 17:06:01 +02:00
Jacob Støren
4e9f91274c Fixing assert due to m_odb not set
There still are troubles closing two instances accessing same file.
2015-04-30 16:35:21 +02:00
Jacob Støren
791a25e6e9 Preparing for result visualization
Calculated mapping vx to node nad elmnode reults
2015-04-30 14:28:13 +02:00
Jacob Støren
1f51eb92b3 Add elmNodeResultIndex access
Renamed somewhat to make things clearer in FemTypes/part
2015-04-30 14:28:05 +02:00
Jacob Støren
f13f05709f Update legend and 3D info on display model gen 2015-04-30 14:27:57 +02:00
Stein Dale
be2f261f9d Made some functions private.
Made static member functions initializeOdbAPI() and finalizeOdbAPI()
private. Consider removing finalizeOdbAPI() since we don't use it.
2015-04-30 14:22:20 +02:00
Stein Dale
5a9f22bfd2 Renaming of geo mech interface, separated results reporting for different result positions
Reporting nodal, element nodal, and integration point result names
separately. Some functions in the geo mech interface were renamed.
Renamed "result" to "field" in function and parameter names in the
interface. TODO: Consider if we should report integration point results
as element node results too, and extrapolate when requested, if needed.
Fixed map handling in RifOdbReader::componentIndex().
2015-04-30 14:22:18 +02:00
Stein Dale
ebfad85b5b Basic ODB reading, including results
Now reading nodal results and displacements. Reporting results meta data
(names with components).
2015-04-30 10:36:17 +02:00
Jacob Støren
3dac8807c7 Refactoring more general stuff into RimView
updateViewerWidget
scheduleUpdateDisplayModelAndRedraw
2015-04-30 10:34:15 +02:00
Jacob Støren
4b7d593b3c Refactored general view stuff into RimView
Removing it from RimReservoirView and RimGeoMechView
2015-04-29 22:19:49 +02:00
Jacob Støren
4a21bb4a30 Added RimView, and sorted the libs in folders 2015-04-29 10:50:25 +02:00
Jacob Støren
a7e38bcda1 Now handling compilation both with and without ODB api 2015-04-29 09:26:29 +02:00
Jacob Støren
936d6553cf Improved CMakeSetup for OdbTest app
Cleaned away the hardcoded paths. Made options instead.
2015-04-28 10:45:00 +02:00
Jacob Støren
1e88b38e69 Moved the testfile path to the CMake setup
Edit from the Cmake GUI
2015-04-28 09:22:31 +02:00
Jacob Støren
0560457cd2 Added C3D8 elements. Removed unused close()
Close (or something similar) will be added when needed.
2015-04-28 09:21:27 +02:00
Jacob Støren
8be93ae448 Moved the element type functions into a static class 2015-04-27 15:04:05 +02:00
Jacob Støren
c0217a68a4 First odb file read and displayed 2015-04-27 14:06:42 +02:00
Jacob Støren
0f3d9ffa60 Now reading Odb-file and creating display model
Nothing shows up yet, but we're getting there
2015-04-27 13:51:22 +02:00
Jacob Støren
ea3d2dc40d Fixed missing conversion to node indices from node ids 2015-04-27 13:47:41 +02:00
Jacob Støren
f9ca3d5e54 Renamed to RivFemPartPartMgr 2015-04-27 10:52:48 +02:00
Jacob Støren
2b967d9ca1 Created FemPartCollection
Used that instead against reader to make a "results free" interface
regarding reading the element models.
2015-04-27 10:25:04 +02:00
Jacob Støren
b94ba6ca0b Added nodal results reading to Femreader interface
Adjusted interface
Started to add control code to fire reader and visualization generation
2015-04-25 08:57:34 +02:00
Jacob Støren
c3ec79d6e1 Working ResInsight with Odb linked, hacklish 2015-04-25 08:54:08 +02:00
Jacob Støren
a538be1775 GeoMech with OdbReader Included in ResInsight Build
Preliminary, first shot.
Added first iteration on basic visualization code.
2015-04-24 16:04:12 +02:00
Jacob Støren
6dad519f30 Got elements and nodes from odb in the unit test 2015-04-23 15:43:11 +02:00
Jacob Støren
4737807b7b GeoMech data model and reader unit test framework. 2015-04-23 13:24:15 +02:00
Jacob Støren
1f2bea106f Small guard RiuViewer 2015-04-21 08:37:32 +02:00
Jacob Støren
27c2c040fe Added the 3D view to the geomech stuff 2015-04-20 16:56:26 +02:00
Jacob Støren
27f6bd9eb5 Start of geomech support
Possible GUI-tree layout
2015-04-20 09:02:33 +02:00
Jacob Støren
a5fba8f3f4 Fixes to match new Ert 2015-04-14 15:47:51 +02:00
Jacob Støren
09744af4b8 Upgraded ERT from github master commit d9955e849
Startup on new project
2015-04-14 15:47:22 +02:00
Jacob Støren
02e47c6679 Guard against reading nnc data if none are available
See Issue #278. (Not fixing the issue, just improving code)
2015-02-24 14:57:23 +01:00
Jacob Støren
27ce1852ca Fix of #281: Crash while importing - cvfPlane.cpp Aborted 2015-02-24 13:34:03 +01:00