--- Welcome to the official ADCIRCWiki site! The site is currently under construction, with limited information. ---

# User:Taylorgasher: Difference between revisions

My user page

## etc.

<nowiki>'''not bold text''' ''not italic text'' not ADC version {{ADC version|version=-4E7|relation=ge}} </nowiki>

A redirect: #REDIRECT [[Fort.13_file#Nodal_Attributes]]

<!--comment text<br/> (that can span multiple lines in the code)-->

## syntax highlivin

monty

def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass


fortless

!       I N I T   W I N D   M O D U L E
!     ----------------------------------------------------------------
subroutine initWindModule()
use mesh, only : np
call setMessageSource("initWindModule")
#if defined(WIND_TRACE) || defined(ALL_TRACE)
call allMessage(DEBUG,"Enter.")
#endif
allocate ( wvnx1(np),wvny1(np) )
allocate ( wvnx2(np),wvny2(np) )
allocate ( prn1(np) )
allocate ( prn2(np) )

C      well this commenting approach does not work
if(yourMom.eq.fat)then
write(*,*)'ahahahahaha'
endif   !looks like this doesn't work
IF((EyeLat(1).EQ.0.D0).OR.(EyeLon(1).EQ.0.D0).OR.
&      (EyeLat(2).EQ.0.D0).OR.(EyeLon(2).EQ.0.D0).OR.
&      (EyeLat(3).EQ.0.D0).OR.(EyeLon(3).EQ.0.D0))THEN
FoundEye = .FALSE.
ENDIF

!.... convert background pressure from millibars to meters of water
PRBCKGRND_MH2O = 100.0D0*PRBCKGRND/(RHOWAT0*G)
prn1 = PRBCKGRND_MH2O
prn2 = PRBCKGRND_MH2O

CALL checkWindDragType()
CALL mapWindDragFunctionPointer()

#if defined(WIND_TRACE) || defined(ALL_TRACE)
call allMessage(DEBUG,"Return.")
#endif
call unsetMessageSource()

!     ----------------------------------------------------------------
END SUBROUTINE initWindModule
!     ----------------------------------------------------------------


## some mats

${\displaystyle a_{b}(c)=\left({\frac {de^{2}}{\sqrt[{6}]{f+\alpha (\beta )}}}\right)^{\mathrm {T} ^{\tau }}}$

${\displaystyle \{A\mid A\in \mathbb {E} \land \mathbb {E} -(N\cup R)\}}$

for ${\displaystyle A}$ Andrew, ${\displaystyle \mathbb {E} }$ the entire space, ${\displaystyle N}$ Nickelback fans, and ${\displaystyle R}$ Republicans.

[[#test table| link to subsection or anchor in same page]] link to subsection or anchor in same page

## test table

but

 apple pear orange grape

srsly

 ap ple
 pe ar
 ora nge
 gr ape

Some norma text

## wind drag in/out notes

see email with John, subject line "Outputting wind drag coefficients"

winddrag.173 or winddrag.173.nc

outputWindDrag=.true.

&metControl

from ncdump -h winddrag.173.nc:

       double winddrag(time, node) ;
winddrag:long_name = "wind drag coefficient at sea level" ;
winddrag:standard_name = "wind drag coefficient" ;
winddrag:coordinates = "time y x" ;
winddrag:location = "node" ;
winddrag:units = "unitless" ;
winddrag:_FillValue = -99999. ;


## test transclus

== yup ==


Internal tide energy conversion refers to the energy conversion from barotropic to baroclinic modes as surface tides flow over steep and rough topography in the deep ocean generating internal tides. The "lost" barotropic tidal energy is often accounted for through a linear friction term in large-scale numerical models that are barotropic or not fine-scaled enough to resolve the energy conversion. It is implemented in ADCIRC through a spatially varying nodal attribute called internal_tide_friction, in the fort.13 file.

## Background and Theory

For a review.[1]

How it was known that internal energy conversion is important to the global energy balance of the surface tides.[2][3]

## Attribute Summary

In a computational domain covering a large portion of the deep ocean it is critical to include the effect of internal tide energy conversion to obtain more accurate tidal solutions. The user should only elect to use the internal_tide_friction nodal attribute when tides are included in the simulation through tidal boundary conditions and tidal potential functions. The attribute is unnecessary for domains that are small in size and/or do not cover a significant portion of the deep ocean (taken here to mean the portion of the ocean excluding the continental shelf).

ADCIRC reads the internal_tide_friction attribute in as the IT_Fric variable, which can have 1 (scalar) or 3 (tensor) dimensions. The attribute has dimensions of [1/time], meaning that it is a linear friction term which is multiplied by the velocity in the governing equations, and is normalized by the ocean depth prior to simulation. Hence, it ignores the water surface elevation portion of the total water depth, which is reasonable since the term and theory it is based on is only applicable to deep ocean. Typically, it is only applied to ocean depths greater than 100-500 m.

## Specifying IT_Fric Values

IT_Fric values are determined through analytical formulations based on Bell's linear theory[4], valid in what is called sub-critical topography.

Recent publications using ADCIRC[5][6] provide relevant formulation and implementation details.

## References

1. C. Garrett, E. Kunze, Internal Tide Generation in the Deep Ocean, Annu. Rev. Fluid Mech. 39 (2007) 57–87. doi:10.1146/annurev.fluid.39.050905.110227.
2. G.D. Egbert, R.D. Ray, Significant dissipation of tidal energy in the deep ocean inferred from satellite altimeter data, Nature. 405 (2000) 775–778. doi:10.1038/35015531
3. G.D. Egbert, R.D. Ray, Estimates of M2 tidal energy dissipation from TOPEX/Poseidon altimeter data, J. Geophys. Res. Ocean. 106 (2001) 22475–22502. doi:10.1029/2000JC000699.
4. Template:Cite journal
5. W.J. Pringle, D. Wirasaet, A. Suhardjo, J. Meixner, J.J. Westerink, A.B. Kennedy, S. Nong, Finite-Element Barotropic Model for the Indian and Western Pacific Oceans: Tidal Model-Data Comparisons and Sensitivities, Ocean Model. 129 (2018) 13–38. doi:10.1016/j.ocemod.2018.07.003.
6. W.J. Pringle, D. Wirasaet, J.J. Westerink, Modifications to Internal Tide Conversion Parameterizations and Implementation into Barotropic Ocean Models, EarthArXiv. (2018) 9. doi:10.31223/osf.io/84w53.