Welcome, Guest
Username: Password: Remember me

TOPIC: Problem change liquid boundary to wall boundary

Problem change liquid boundary to wall boundary 10 months 3 weeks ago #42829

  • zjdxwgf
  • zjdxwgf's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
Dear everyone:
I want to carry out a hydrodynamic simulation of a lake. The lake only have one inlet, which is assigned as a water level boundary. However, the inlet has a gate and I want to simulate gate operation. The operation rule is simple: If the boundary water level is bigger than lake level, the gate is open, Else the gate is close. Therefore, i change the bord.f as follows:
ELSEIF(NCOTE.GT.0.OR.NOMIMP(1:1).NE.' ') THEN
N=NBOR(K)
IF(NCSIZE.GT.1) N=MESH%KNOLG%I(N)
Z = SL(IFRLIQ,N)
IF(H%R(NBOR(K))<=MAX( 0.D0 , Z-ZF(NBOR(K)) )) THEN
HBOR(K) = MAX( 0.D0 , Z-ZF(NBOR(K)) )
H%R(NBOR(K))=HBOR(K)
ELSE

ENDIF
However, the simulation collapsed. Could anyone tell me how to fix this problem.
The case file and fortran file are attached

Best wieshes.
Attachments:
The administrator has disabled public write access.

Problem change liquid boundary to wall boundary 10 months 3 weeks ago #42831

  • zjdxwgf
  • zjdxwgf's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
The boundary.liq and error information is attached
Attachments:
The administrator has disabled public write access.

Problem change liquid boundary to wall boundary 10 months 3 weeks ago #42833

  • zjdxwgf
  • zjdxwgf's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
Dear everyone: the model is working now. I just change the time step to be 0.5s. Now the model is running. But the results may be not correct. Because the water still exit the domain. Could anyone give me some suggestions to change liquid boundary to wall boundary. Realy need some help, Best wishes.
Attachments:
The administrator has disabled public write access.

Problem change liquid boundary to wall boundary 9 months 2 weeks ago #42967

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1468
  • Thank you received: 563
Hello,

I would suggest you to read the TELEMAC-2D user manual available here:
wiki.opentelemac.org/doku.php?id=documentation_v8p4r0
or directly here:
gitlab.pam-retd.fr/otm/telemac-mascaret/...emac2d_user_v8p4.pdf
in particular section 4.2 "Prescribing boundary conditions"

Maybe you can also read the user manual of the mesh generator you use to build your geometry file (and boundary file?).

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

Problem change liquid boundary to wall boundary 10 months 4 days ago #42894

  • Laurie
  • Laurie's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 67
  • Thank you received: 3
Hi,
Sorry about that, but I'm complitly new in fortran .... I read your question and if I found tour answer I'll share it !

Until this happy end, could you tell me what's "NCSIZE" and where it's define in the fortran file ?

Thanks a lot,

Laurie
The administrator has disabled public write access.

Problem change liquid boundary to wall boundary 10 months 4 days ago #42895

  • Laurie
  • Laurie's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 67
  • Thank you received: 3
I think I found !

In the TELEMAC v7p0 user-manual :

FR version :

Noter que pour la version python de TELEMAC, le nombre de processeurs est donné comme un argument pour la commande de lancement et non pas comme un mot-clé codé en dur dans le fichier des paramètres (par exemple telemac2d.py --ncsize=4 cas.txt lancera TELEMAC-2D sur 4 processeurs).

EN version :
Note that for the python version of TELEMAC, the number of processors is given as an argument to the launch command and not as a hard-coded keyword in the parameter file (e.g. telemac2d.py --ncsize=4 cas.txt will launch TELEMAC-2D on 4 processors).

I understand I don't need to define it, because it should be a variable already defined somewhere in TELEMAC2D.
The administrator has disabled public write access.
Moderators: pham

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