I have a question:
I want to include a coefficient
R in my drag parameterisation.
R changes with each roughness zone. I need to solve the drag equation on all the nodes for each roughness zone using the
R local to each zone.
I am thinking of placing all my roughness zones onto one private variable. Then find the value for each zone in that variable. When Telemac reads a node with a certain value, then a specific
R value is applied to the drag equation for that node.
For example, using private variable containing the different zones:
DO I=1,NPOIN2
IF (PRIVE2D%ADR(2)%P%R(I).GT.0.1D0)THEN !Find zones
DO IPLAN = NPLAN-33,NPLAN-30 !find layers
I3D = I+NPOIN2*(IPLAN-1) !find nodes
R = 0.55 !define R
IF (PRIVE2D%ADR(2)%P%R(I).GT.0.2D0)THEN
DO IPLAN = NPLAN-33,NPLAN-30
I3D = I+NPOIN2*(IPLAN-1)
R = 0.46
IF (PRIVE2D%ADR(2)%P%R(I).GT.0.3D0)THEN
DO IPLAN = NPLAN-33,NPLAN-30
I3D = I+NPOIN2*(IPLAN-1)
R = 0.41
NORM =SQRT(UN3%R(I3D)**2+VN3%R(I3D)**2+WN3%R(I3D)**2)
S1U%R(I3D)=0.5D0*AREA*R*CD*NORM !apply R
S1V%R(I3D)=0.5D0*AREA*R*CD*NORM
S1W%R(I3D)=0.5D0*AREA*R*CD*NORM
Would this be appropriate?
Many thanks!