Welcome, Guest
Username: Password: Remember me

TOPIC: Initial conditions variable in space

Initial conditions variable in space 13 years 2 days ago #3112

  • m.mahgoob
  • m.mahgoob's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 106
Hi,

Is it possible to set the initial conditions variable in space especially for tracer. I want to have variable initial salinity within the domain as the diffusion of the salinity needs very long time, so having variable salinity value within the space will help in reaching the steady state quickly.
The administrator has disabled public write access.

Re: Initial conditions variable in space 13 years 2 days ago #3115

  • jmhervouet
  • jmhervouet's Avatar
Hello,

You can do what you want in condin.f, by replacing the sequence initialising the tracer with a constant by any variation in space.

Regards,

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

Re: Initial conditions variable in space 13 years 2 days ago #3116

  • m.mahgoob
  • m.mahgoob's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 106
Can you please tell me how can I code that in the condin, for instance if the space variation in tracer is according to the following equation:

T = { (X - 14710)^2 + (Y - 35)^2 }^0.5

Where X and Y are the coordinates for each point

Thanks in advance
The administrator has disabled public write access.

Re: Initial conditions variable in space 13 years 1 day ago #3122

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Here is what you can do :

DO I=1,NPOIN
T%ADR(1)%P%R(I)=SQRT((X(I)-14710.D0)**2+(Y(I)-35.D0)**2)
ENDDO

You may have to declare I as an integer. I assume here that you have only one tracer. For a second tracer it would be T%ADR(2)%P%R(I)=... as T is the block of tracers.

You can refer to the programming guide for explanations on blocks.

With best regards,

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

Re: Initial conditions variable in space 12 years 5 months ago #4706

  • Stefaan
  • Stefaan's Avatar
Hello,

I would like to impose space varying initial conditions for water level and a tracer using the condin.f file. I created .t3s files for both variables on the exact mesh using the BlueKenue software. Now I am looking for an easy way to include these .t3s initial conditions in the condin.f file.

I know that a similar thing is done with the BOTTOM file and the BOTTOM FRICTION file when those are included in the geometry file. However I didn't find how to implement this in the condin.f file.

Thanks in advance!
The administrator has disabled public write access.
Moderators: pham

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