Commit Graph

2688 Commits

Author SHA1 Message Date
Atgeirr Flø Rasmussen
6f31f9978a Added a static assertation and two matrix types. 2011-06-20 11:13:45 +02:00
Atgeirr Flø Rasmussen
b418185aeb Implemented vectorized fluid methods in BlackoilPVT. 2011-06-17 20:27:42 +02:00
Atgeirr Flø Rasmussen
5378d429a2 Add a todo comment. 2011-06-17 15:57:39 +02:00
Atgeirr Flø Rasmussen
abebf165b2 Implemented new interface. 2011-06-17 15:57:18 +02:00
Atgeirr Flø Rasmussen
3e96ed4502 Implemented new interface. 2011-06-17 15:46:01 +02:00
Atgeirr Flø Rasmussen
40d6b42d56 Implemented new interface. 2011-06-17 15:04:37 +02:00
Atgeirr Flø Rasmussen
0ea2c1d754 Implemented new fluid interface. 2011-06-17 15:04:15 +02:00
Atgeirr Flø Rasmussen
9d1d59a570 New abstract interface computing vectors of properties. 2011-06-17 15:03:46 +02:00
Atgeirr Flø Rasmussen
b834757d12 Changed extrapolation behaviour outside tabulated R and pressure values. 2011-06-17 14:05:52 +02:00
Atgeirr Flø Rasmussen
055e0e967d Added program that writes fluid info in the (zg/zo, p) plane to matlab format. 2011-06-17 13:04:20 +02:00
Atgeirr Flø Rasmussen
bdb52341ba Added B and R factors to the state data (for easier debugging). 2011-06-17 12:59:19 +02:00
Bård Skaflestad
e15bdb5d51 Catch debugging code up to field renames in cset cb524598a847. 2011-06-14 18:27:42 +02:00
Atgeirr Flø Rasmussen
22b54326e1 Removed #include "config.h" from headers, added to sources where missing. 2011-06-09 09:21:48 +02:00
Bård Skaflestad
2b8bde1b55 Summarise the fields of struct coarse_topology. 2011-06-05 13:20:15 +02:00
Bård Skaflestad
11ae0c62ae Use (c1,c2) alias rather than neigh[] references where possible. 2011-05-31 23:06:44 +02:00
Bård Skaflestad
1cb20e7637 Increase readability of create_c2c().
Introduce two intermediate variables, c1, and c2, to hold cell numbers
during the building of the cell<->cell neighbourhood.  This reduces
the statement complexity--both for the human reader and the compiler...
2011-05-31 23:04:40 +02:00
Bård Skaflestad
eed3e5bc65 Spelling. 2011-05-28 00:08:33 +02:00
Bård Skaflestad
f825d4e23d Avoid signed/unsigned problem. 2011-05-27 23:17:44 +02:00
Bård Skaflestad
32aaacdbaa Update ignore list.
Include additional, automatically generated Autotool files.
Specifically, condense all 'config.*' files down to a single, glob
pattern.  Also, ignore all of Libtool's M4 macros in the 'm4' directory.
2011-05-27 20:15:15 +02:00
Bård Skaflestad
3d78ab39a7 Enable silent build rules by default if available.
Automake's silent rules report commands as (e.g.,)

  CC facetopology.lo

which is a lot easier to read than the more verbose default output.
Enable this report mode, but only if we're being processed by an
Automake implementation that offers this particular capability.
2011-05-27 20:07:18 +02:00
Bård Skaflestad
f316c730d0 Enable silent build rules if available in Automake.
Automake 1.11 introduced the concept of "silent build rules" wherein the
build commands are reported as

  CC     cfsh.lo

rather than something along the lines of

  bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../../opmpressure/src -I..   -DMATLAB_MEX_FILE=1 -I/work/opt/matlab/R2009b/extern/include/  -O3 -DNDEBUG -std=c99 -Wall -Wextra -pedantic -march=native -mtune=native -MT cfsh.lo -MD -MP -MF .deps/cfsh.Tpo -c -o cfsh.lo ../../../../../opmpressure/src/cfsh.c
  libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../../opmpressure/src -I.. -DMATLAB_MEX_FILE=1 -I/work/opt/matlab/R2009b/extern/include/ -O3 -DNDEBUG -std=c99 -Wall -Wextra -pedantic -march=native -mtune=native -MT cfsh.lo -MD -MP -MF .deps/cfsh.Tpo -c ../../../../../opmpressure/src/cfsh.c  -fPIC -DPIC -o .libs/cfsh.o

The former is much easier to read and, consequently, more conducive to
visually noticing diagnostics from the toolset (compiler, linker &c).

On the other hand, only fairly recent editions of Automake have the
"silent rule" capability, so enable silent rules only if available.  In
particular, Automake 1.10.x (the default Automake version in MacOS X
10.6) does not support the capability.  Neither does the default
Automake in CentOS 5.6.

Further details on silent build rules can be found at

  http://sources.redhat.com/automake/automake.html#Options
  http://www.flameeyes.eu/autotools-mythbuster/automake/silent.html

Thanks to Arne Morten Kvarving in Dune Flyspray issue #922
(http://www.dune-project.org/flyspray/index.php?do=details&task_id=922)
for the tip on how to preserve "configure.ac" backwards compatibility
with Automake < 1.11 .
2011-05-27 15:09:58 +02:00
Bård Skaflestad
f8f6bba0cd Enable silent build rules if available in Automake.
Automake 1.11 introduced the concept of "silent build rules" wherein the
build commands are reported as

  CC     spu_explicit.lo

rather than something along the lines of

  /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../../opmtransport/src -I..     -O3 -DNDEBUG -Wall -Wextra -std=c99 -pedantic -march=native -mtune=native -MT spu_explicit.lo -MD -MP -MF .deps/spu_explicit.Tpo -c -o spu_explicit.lo ../../../../../opmtransport/src/spu_explicit.c
  libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../../opmtransport/src -I.. -O3 -DNDEBUG -Wall -Wextra -std=c99 -pedantic -march=native -mtune=native -MT spu_explicit.lo -MD -MP -MF .deps/spu_explicit.Tpo -c ../../../../../opmtransport/src/spu_explicit.c  -fPIC -DPIC -o .libs/spu_explicit.o
  libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../../opmtransport/src -I.. -O3 -DNDEBUG -Wall -Wextra -std=c99 -pedantic -march=native -mtune=native -MT spu_explicit.lo -MD -MP -MF .deps/spu_explicit.Tpo -c ../../../../../opmtransport/src/spu_explicit.c -o spu_explicit.o >/dev/null 2>&1

The former is much easier to read and, consequently, more conducive to
visually noticing diagnostics from the toolset (compiler, linker &c).

On the other hand, only fairly recent editions of Automake have the
"silent rule" capability, so enable silent rules only if available.  In
particular, Automake 1.10.x (the default Automake version in MacOS X
10.6) does not support the capability.  Neither does the default
Automake in CentOS 5.6.

Further details on silent build rules can be found at

  http://sources.redhat.com/automake/automake.html#Options
  http://www.flameeyes.eu/autotools-mythbuster/automake/silent.html

Thanks to Arne Morten Kvarving in Dune Flyspray issue #922
(http://www.dune-project.org/flyspray/index.php?do=details&task_id=922)
for the tip on how to preserve "configure.ac" backwards compatibility
with Automake < 1.11 .
2011-05-27 15:05:02 +02:00
Bård Skaflestad
4eeb70e016 Delete trailing whitespace. 2011-05-11 15:14:34 +02:00
Bård Skaflestad
298034ea98 Consistently refer to "half-transmissibilities" as "one-sided".
While here, remove a comment that only describes the mechanics of the
following loop and does not provide any more insight.
2011-05-11 15:14:19 +02:00
Bård Skaflestad
79b5e95bc4 Merge from upstream. 2011-05-11 14:24:47 +02:00
Atgeirr Flø Rasmussen
70ff7a1b99 Three changes:
1. Changed calculation of face pressures to avoid using mobilities.
2. Added 'scratch_f' array to cfs_tpfa_impl struct (for use by above routine).
3. Changed interface of cfs_tpfa_fpress() to pass the data struct.
2011-05-11 14:17:30 +02:00
Atgeirr Flø Rasmussen
df5df18a82 Fixes upwind direction with gravity influence in pressure solver. 2011-05-10 13:41:37 +02:00
Atgeirr Flø Rasmussen
23f1cff3c2 Now assemble() expects gravcapf as a parameter instead of computing it. 2011-05-10 11:35:01 +02:00
Atgeirr Flø Rasmussen
c46698ff9b Fixing signs of gravity parts. 2011-05-10 11:18:17 +02:00
Atgeirr Flø Rasmussen
a525f0335e Finished refactoring BlackoilFluidData::compute(). 2011-05-10 10:21:33 +02:00
Atgeirr Flø Rasmussen
8d81c73267 Reordered computations for refactoring. Work in progress. 2011-05-10 10:17:36 +02:00
Atgeirr Flø Rasmussen
249917bea4 Work in progress on fluid evaluation, correcting upwind decisions. 2011-05-10 09:36:48 +02:00
Bård Skaflestad
9efc70d353 Reorder declarations to remove warning.
Specifically, GCC in strict ISO C90 mode warns of:
  cfs_tpfa.c: In function ‘cfs_tpfa_impes_maxtime_cell’:
  cfs_tpfa.c:1086: warning: ISO C90 forbids mixed declarations and code
2011-04-26 23:15:43 +02:00
Atgeirr Flø Rasmussen
deb1f4e5ad Using gravtrans_p for well impes transport. 2011-04-26 11:06:46 +02:00
Atgeirr Flø Rasmussen
9730ea81c1 Merged. 2011-04-18 13:52:54 +02:00
Atgeirr Flø Rasmussen
c7fb0bfc3a Bugfix in impes transport for well perforations, function signature change. 2011-04-18 13:51:54 +02:00
Atgeirr Flø Rasmussen
4cfd362217 Init fixes for changed z interpretation. 2011-04-13 16:45:39 +02:00
Atgeirr Flø Rasmussen
ebecb4ad41 Major fix: Changing the meaning of z to surfvol *density*. Some details:
- changed names of some variables to match (new) reality
 - fixes a bug with the experimental jacobian (which already assumed this)
 - initialization has changed to ensure that sum(u = Az) == 1 instead of == pv.
 - have not yet checked that wells are handling z correctly.
2011-04-13 16:09:17 +02:00
Atgeirr Flø Rasmussen
78726b306b Major fix: Changing the meaning of z to surfvol *density*. Some details:
- changed names of some variables to match (new) reality
 - fixes a bug with the experimental jacobian (which already assumed this)
 - initialization has changed to ensure that sum(u = Az) == 1 instead of == pv.
 - have not yet checked that wells are handling z correctly.
2011-04-13 16:09:17 +02:00
Bård Skaflestad
61bbaf821b Merge from upstream. 2011-04-12 12:34:04 +02:00
Atgeirr Flø Rasmussen
c0a1444fa4 More output. Substantially changed effect of do_impes parameter. In detail:
0. Writes total fluid volumes to octave and vtk output files.
(following considerations ONLY apply to IMPES mode: do_impes=true)
1. Now we do timestep safety evaluations for IMPES, a la Coats.
   This is done after the pressure computation.
2. If current timestep is unsafe, we set the new timestep to the safe one,
   divided by 1.5.
3. If minimum_stepsize is set, we will not further reduce the timestep once
   it is below the minimum (yes, this is not quite a "minimum").
All in all, timestepping and reporting should be reconsidered to make a
user-friendly yet controllable impes code. The current impes mode does
not interact well with timestep_file for instance.
2011-04-12 09:44:39 +02:00
Bård Skaflestad
87a0756af6 Merge from upstream. 2011-04-11 16:35:06 +02:00
Atgeirr Flø Rasmussen
389d7627f4 Added explicitTimestepLimit() method. 2011-04-11 13:37:30 +02:00
Atgeirr Flø Rasmussen
93e0cda4cd Added support for upwind computation of mobility derivatives. 2011-04-11 13:34:27 +02:00
Atgeirr Flø Rasmussen
a0f82cbe39 Added drelperm_ and dmobility_ to store derivatives. 2011-04-11 13:33:32 +02:00
Atgeirr Flø Rasmussen
7158081b1a Added dkr() member. 2011-04-11 13:32:35 +02:00
Bård Skaflestad
5548973e73 Sort includes. 2011-04-11 11:32:42 +02:00
Atgeirr Flø Rasmussen
58b7db31c5 Added setting of dpmob arrays. Minor edit and reindent. 2011-04-11 11:12:33 +02:00
Atgeirr Flø Rasmussen
3ceab3dc45 Added gravity parameter, and gravity potential computations. 2011-04-11 11:04:52 +02:00
Atgeirr Flø Rasmussen
7e290e8bfd First partial implementation of Coats' stable IMPES step limit. 2011-04-11 10:11:22 +02:00