Commit Graph

4062 Commits

Author SHA1 Message Date
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
Atgeirr Flø Rasmussen
f3a2d5fff6 Added saturation printing option. 2011-04-08 11:11:46 +02:00
Atgeirr Flø Rasmussen
ade30ebd67 Output experimental term. 2011-03-17 08:28:57 +01:00
Atgeirr Flø Rasmussen
5924dc9387 Added computation of new term, for the experimental pressure solver jacobian. 2011-03-17 08:28:36 +01:00
Atgeirr Flø Rasmussen
1b84280ab4 Added program printing some fluid properties. 2011-03-08 10:13:07 +01:00
Bjørn Spjelkavik
f6c378e578 OpenMP parallelization 2011-03-03 09:04:47 +01:00
Bård Skaflestad
fb2192a7ed Implement total rate constraint for wells.
Untested.
2011-02-16 10:41:43 +01:00
Ove Saevareid
c7950ff341 Correcting (hopefully:)) compressibility computations. 2011-02-11 11:32:52 +01:00
Bjørn Spjelkavik
492ad8425e Now handles PVCDO. 2011-02-09 11:28:00 +01:00
Ove Saevareid
405900ac39 Bugfix: Correct number of connections also for the last well. 2011-02-07 17:52:32 +01:00
Atgeirr Flø Rasmussen
c1e686a3d6 Removed check for wells, no longer necessary since we support them now. 2011-02-03 15:44:36 +01:00
Bjørn Spjelkavik
a27015d00c No longer converts units. 2011-02-03 15:41:20 +01:00
Bjørn Spjelkavik
4c10c38965 No longer converts units. 2011-02-03 15:40:41 +01:00
Atgeirr Flø Rasmussen
a0c54cb6de Added well handling to cfs_tpfa_expl_mass_transport(), simplified interface. 2011-02-03 12:51:53 +01:00
Atgeirr Flø Rasmussen
c6835bb9a7 Now the relative volume discrepancy takes std::fabs(), so max_element() will be ok. 2011-02-02 10:12:12 +01:00
Atgeirr Flø Rasmussen
4f78892dc4 Added (commented out) code to dump tables. 2011-02-01 12:40:32 +01:00
Atgeirr Flø Rasmussen
6f9ef5a32c Added output operator for easy dumping of tables. 2011-02-01 12:40:05 +01:00
Atgeirr Flø Rasmussen
1e27b84dd8 Changed order of phases and components. 2011-01-26 16:01:04 +01:00
Atgeirr Flø Rasmussen
a779a061cc Corrected size of gpot_storage. 2011-01-26 16:00:08 +01:00
Ove Saevareid
5c358c2de4 MiscibilityLiveOil: Additional undersaturated table entries and a few fixes. 2011-01-25 11:52:50 +01:00
Atgeirr Flø Rasmussen
6c5520a9ad Merge. 2011-01-24 14:37:32 +01:00
Atgeirr Flø Rasmussen
fba93287c9 Fixed sign of gravity input to pressure solver. 2011-01-24 14:34:38 +01:00
Bård Skaflestad
5c3b6432b2 Explicitly state that ratio->psum is a scalar per total connection. 2011-01-24 11:21:25 +01:00
Bård Skaflestad
079d2704a6 Merge from upstream. 2011-01-20 16:07:36 +01:00
Atgeirr Flø Rasmussen
3ecfac750a Updated to match changed C interface. 2011-01-20 16:01:58 +01:00
Bård Skaflestad
e23b9e5aff Satisfy all post-conditions of compute_densrat_update()
The total (accumulated) phase contributions must be available in
ratio->psum for each completion when leaving the function.
2011-01-20 10:49:11 +01:00
Bård Skaflestad
8efa1b88e2 Add compressible well completion flows.
Specifically, allocate storage for 'masstrans' and 'gravtrans' terms
per well completion (perforation), as well as compressible
transmissibilities (scalar per completion).  Calculate compressible
quantities by treating each completion as an interface.

Introduce a new structure, 'completion_data', to collect static and
dynamic discretisation data pertaining to each completion (e.g.,
productivity indices, gravity potentials and density ratio
operators).  Pass this structure, rather than individual fields, into
affected CFS_TPFA entry points.

Compile tested only.
2011-01-19 20:20:15 +01:00