Skip to main content
Version: Latest

All problems

Warm-water mixing in a drained cell

At a glance
Dimension2D
Inputsmixing.zip
Reproduce withDynEarthSol 3774df0

Warm water enters a pressure-controlled, well-mixed saturated cell. Natural outflow removes water at the cell temperature; inlet and retained water have different EOS densities.

Maximum temperature error is 0.000545 K at 200 steps and falls with timestep refinement. Retained energy equals injected sensible heat minus boundary export within 20 microjoules.

Problem setup​

Setup

Cell. Rigid unit cell at p=0, initially 273 K, insulated and without gravity. Uniform distributed sources keep the temperature spatially uniform.

Injection. 0.01 m³/s enters at 323 K for 5 s. Its mass rate uses density at the inlet temperature.

Outflow. Natural boundary reaction carries water at the changing cell temperature; it balances injection and the loss of retained mass from thermal expansion.

Input and how to run​

Every file this example needs is in data/mixing/. Run from that folder:

# Injects 323 K water for 5 s in 200 steps into a drained, initially 273 K unit cell.
dynearthsol2d input.cfg

Settings that define this example​

SettingValueWhat it does here
control.hydraulic_content_model1selects the finite-density saturated inventory law
mat.porosity_model1evolves Eulerian Biot porosity from the accepted strain and pressure
control.fixed_dt0.025physical coupling interval; transport can subcycle within it
mat.fluid_bulk_modulus[1e8]constant fluid compressibility in the exponential density law
mat.bulk_modulus_s[1e9]grain compressibility in the porosity law
mat.fluid_alpha[0.0002]volumetric fluid thermal expansivity
sim.output_step_interval1saved-frame interval; ledger entries belong to individual physical steps

input.cfg holds all 79 settings that differ from DES’s defaults; dynearthsol2d -h lists every option with its default.

Output​

See Running the examples for output files, the Python reader and ParaView conversion.

FieldWhat to look at
pore pressurephysical nodal pressure in Pa
fluid massretained physical nodal water mass in kg
hydraulic split buffernumerical fixed-stress mass increment, excluded from density and heat
solid heat capacitymaterial heat-capacity inventory, unchanged by fluid drainage
temperaturetemperature in K
fluid mass balancephysical and numerical mass changes, measured boundary/source exchange and residual

Result: DES and the analytical solution​

Result

2D unit cell, 0.01 m³/s inlet at 323 K, initial 273 K, 0–5 s, 200 steps. (a) temperature and the independent integral solution; (b) injected, exported and retained sensible heat.

This checks inlet-temperature ownership, injection density, outflow enthalpy and changing retained fluid storage together. Sources are distributed uniformly by nodal volume, so it is a mixing control rather than a spatial plume benchmark.

Water and energy history · Cell controls

To reproduce the whole study behind this figure, from the DES source folder:

python3 tests/functional/hydromechanics/check_mass.py dynearthsol2d OUT --cases heat

The study’s full numbers: record.json.

Analytical reference​

is inlet volume rate, inlet mass rate and the outward boundary mass rate. MJ/K, J/(kg K), kg and K. The inlet density is lower than the initial cell density.

Derivation​

Water balance sets the outward mass rate. In the sensible-energy balance, the retained c_f T dM term cancels the matching part of boundary export, giving the displayed temperature equation.

Separate variables to obtain the independent integral solution. Its integrand is evaluated after a logarithmic distance-to-inlet-temperature substitution, avoiding an endpoint pole. With zero expansivity the solution reduces to an exponential.

The reported budget uses actual inlet density, actual retained fluid mass and boundary enthalpy at cell temperature. It includes no numerical fixed-stress buffer in the heat capacity.

Independent integral solution and constant-density exponential limit in mass_reference.py.

Validity and limits​

Uniform well-mixed sensible heat at zero pressure and zero strain. This control does not resolve a local well singularity, a thermal front or a buoyant plume.