Hello,
If you want to initialize the temperature to a constant value, this is done in the cas file. Assuming you have one tracer:
INITIAL VALUES OF TRACERS: 20.
If you need to do a more complex initialization, this is done in the subroutine condim.f of telemac3d. You can replace the lines:
IF(NTRAC.GT.0) THEN
DO I=1,NTRAC
CALL OS( 'X=C ', X=TA%ADR(I)%P, C=TRAC0(I))
ENDDO
ENDIF
with your own initialisation. For example:
IF(NTRAC.GT.0) THEN
PI=ACOS(-1.D0)
L_BOX = 200.D0
DO IPOIN2=1,NPOIN2
DO IPLAN=1,NPLAN
IPOIN3 = (IPLAN-1)*NPOIN2 + IPOIN2
TA%ADR(IND_T)%P%R(IPOIN3) = (1.D0 - 16.D0*PI**2/L_BOX**2)
& * SIN(2.D0*PI/L_BOX*MESH%X%R(IPOIN3))
& * SIN(2.D0*PI/L_BOX*MESH%Y%R(IPOIN3))
ENDDO
ENDDO
ENDIF
To answer you second question, you can set the temperature at each open boundary in the cas file. Assuming you have two open boundaries this gives:
PRESCRIBED TRACERS VALUES : 20.;20.
Note that at outflow boundaries the tracer value is interpolated from inside the domain so this value is overwritten.
Best regards,
Agnès
Best regards,
Agnès