Welcome, Guest
Username: Password: Remember me

TOPIC: Extracting output variable from DRAGFO subroutine

Extracting output variable from DRAGFO subroutine 10 years 11 months ago #11227

  • albertoperezortiz
  • albertoperezortiz's Avatar
Hi,

I would like to extract one of my computed outputs from the DRAGFO subroutine. I've read old related topics and based on that I've added the following to my DRAGFO subroutine:

PRIVE%ADR(1)%P%R(I)= calc_withFUDRAG
PRIVE%ADR(2)%P%R(I)= calc_withFUDRAG

And then added N and O variables to VARIABLES FOR GRAPHIC PRINTOUTS in the steering file.

Is this correct? Do I have to add something to the PRERES or NOMVAR subroutines? Besides, my understanding is that FUDRAG AND FVDRAG variables from DRAGFO are multiplied by density, U and V components respectively, and water depth when calculation is run. Am I correct in assuming that if I use FUDRAG or FVDRAG values within the subroutine those calculation have not occurred yet? The only calculation I see that occurs within the subroutine is the smear of FUDRAG and FVDRAG across the area AIRE.

Thanks

Alberto
The administrator has disabled public write access.

Extracting output variable from DRAGFO subroutine 10 years 11 months ago #11231

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Yes, this is correct. The equation solved, as explained in the subroutine header, is:

du/dt + advection = other terms + FUDRAG * u

This is why FUDRAG is negative and only linear in u. The rest of the treatment is only variational formulation and depth-averaging.

You can edit nomvar_telemac2d if you want to give clearer names and units to your variables.

With best regards,

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

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