Spatial Discretization in HYDRUS-1D | Meshing

The HP1 code incorporates modules simulating
(1) transient water flow in variably-saturated media,
(2) transport of multiple components, and
(3) mixed equilibrium/kinetic geochemical reactions.
Post Reply
hmal
Posts: 4
Joined: Mon Apr 21, 2025 9:45 am
Location: Australia

Spatial Discretization in HYDRUS-1D | Meshing

Post by hmal » Mon Apr 21, 2025 10:19 am

Hi,

I’m a new user of HYDRUS and I have two questions to clarify.

1. I’m having difficulty understanding how the "Density" option in the Profile Information section affects the mesh when values are entered. I’ve attached a figure showing the mesh generated using the Density tab (Fig.1).

2. From what I’ve read so far, using a finer mesh generally improves the accuracy of the simulation. However, I’m modelling water vapour movement in an unbound granular material with a profile depth of 300 mm over 250 days, and I'm using a non-uniform mesh with finer elements near the surface (e.g., at z = 0, 0.8, 1.2, and 1.6 mm at top; this was created using above mentioned Density). Despite all time steps converging, the watbal% value of the Balance. out file exceeds 5%, which indicates a problem in water balance. I have attached a figure for your reference (Fig.2)

Could you please help me understand what's causing this and how to resolve it?

Thank you.
Attachments
Fig_2.png
Fig_2.png (260.62 KiB) Viewed 9907 times
Fig_1.png
Fig_1.png (125.15 KiB) Viewed 9907 times

Jirka
Posts: 6268
Joined: Sat Mar 16, 2002 3:47 pm
Location: USA
Location: Riverside, CA

Re: Spatial Discretization in HYDRUS-1D | Meshing

Post by Jirka » Mon Apr 21, 2025 3:47 pm

The effects of nodal density on discretization is explained in detail in the Help.

Check out in the manual how the mass balance errors are calculated. They are related to cumulative boundary fluxes. Thus, if you have small cumulative boundary fluxes, you can get a large relative error, even when the absolute error is very small. In you case, you have an absolute error of 0.0919 while the total mass is 36.7. If you relate the absolute error to the total mass, you get a relative error of only about 0.25%. Thus, I would not worry about it too much.

J.

hmal
Posts: 4
Joined: Mon Apr 21, 2025 9:45 am
Location: Australia

Re: Spatial Discretization in HYDRUS-1D | Meshing

Post by hmal » Mon Apr 21, 2025 11:53 pm

Thank you very much.

Post Reply