Welcome, Guest
Username: Password: Remember me

TOPIC: initialize tracer in condim to caculate the salinity stratification

initialize tracer in condim to caculate the salinity stratification 3 years 4 months ago #38737

  • Shan
  • Shan's Avatar

File Attachment:

File Name: tracer.cas
File Size: 2 KB

Hello, I want to initialize tracer conditions in condim to caculate the salinity stratification. Driectly using the key word to give a certain concentration value the hydrodynamic works well. However, when using the modified fortran file it calculates the initial mass of water in the domain as infinity and shows exceeding maximum iterations. I attached here my CAS file, the modified condim subroutine also screen shots of the error. How to solve this problem? Thanks!
Attachments:
The administrator has disabled public write access.

initialize tracer in condim to caculate the salinity stratification 3 years 4 months ago #38740

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello,

First of all, please use the latest release v8p2r1. Many fixes of bugs and new features are added.

If you want to tune initial conditions for tracers, you only need to write them in the USER_CONDI3D_TRAC subroutine and it will do the job correctly.

The CONDIM subroutine does many things:
- treatment of the initial conditions for many variables (water depth, velocities, tracers, etc.),
- computation of the first 3D mesh from the initial water depth.

If you delete lines in CONDIM subroutine that are needed for the computation as you did, you may experience wrong results.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.
The following user(s) said Thank You: Shan

initialize tracer in condim to caculate the salinity stratification 3 years 4 months ago #38749

  • Shan
  • Shan's Avatar
Thank you.I cannot delelt the lines incluing the part of depth and velocity.Now problem solevd.

As you say,I will try the new version. It should be more convenient for users to write subroutine.
The administrator has disabled public write access.
Moderators: pham

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