Welcome, Guest
Username: Password: Remember me

TOPIC: Understanding Discharge Boundary Conditions

Understanding Discharge Boundary Conditions 11 years 2 months ago #10462

  • Lufia
  • Lufia's Avatar
Some final remark:

I have computed the error for the different options in flusew.f. The error can be computed by the last formula given in the previous post. In flusew.f this leads to following equation:

error = R1 - (UI*XN + VI*YN+2.D0*SQRT(G*HI))


If we check the error for the three possible cases

a) U,V given; computes h
b) H given; computes Q
c) Q given; computes u,v and h:

We get the following results:

Case a) allows only to compute HI when the velocity is given as fixed boundary condition. In Telemac it is also used for an imposed in/outflow boundary condition (given q) where U,V, and H are given. As a result, the formula is for most cases not fulfilled.

Case b) is always fulfilled. Which means that is implemented correctly in Telemac.

Case c) is not implemented in Telemac.
The implementation of case c) shouldn't be too tricky. We need the inflow q at all boundary points. We can get this by splitting the total inflow into the inflow at each boundary segment. Maybe this can be done in debimp?

Then the case can be implemented in flusew.f. The condition must be solved via an iterative procedure (e.g. Newton-Raphson method)

I've programmed an Newton-Raphson solver and will try to adopt debimp to get q instead of the velocity.
The administrator has disabled public write access.

Understanding Discharge Boundary Conditions 11 years 2 months ago #10464

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Actually what is done in debimp is more finite element oriented (computation of fluxes as the product of linear function h by linear function u by normal vector, and this gives an integral of quadratic functions). Finite volumes do not "think" in this way and we have probably here a discrepancy that results in a different discharge. The theory of characteristics is of little help here if we do not solve this problem first, and we have to think it over. We think of two solutions : either the finite volumes are called by debimp to know what is the flux compatible with finite volumes, or the finite element fluxes (as computed by subroutine VECTOR with formula FLUBDF) are imposed to finite volumes on the borders. We'll keep you posted.

With best regards,

Riadh Ata & Jean-Michel Hervouet
The administrator has disabled public write access.

Understanding Discharge Boundary Conditions 11 years 2 months ago #10468

  • Lufia
  • Lufia's Avatar
Hi Jean-Michel Hervouet & Riadh,

Thank you for this answer. Let me know if I can help.

With best regards,

Leo
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.