[MITgcm-support] hfac question
Matthew Mazloff
mmazloff at MIT.EDU
Tue Oct 6 11:49:18 EDT 2009
Hi David,
This is correct. You must have sloping topography and the depth at
the west side of the cell is 90m, while its 100m in the center. U is
calculated on the west face, so the total volume transport is
sum(U(1,:).*drF .* hfacW(1,:)).
Likewise one should use hFacS for V transport.
-Matt
On Oct 6, 2009, at 8:38 AM, David Hebert wrote:
> Hi all,
>
> I am attempting to balance barotropic inflow/outflow on the
> boundaries of a 2D simulation. I ran the model one timestep to
> obtain the hFac's in order to more accurately determine the depth
> the model uses. The result from Depth.data at one point is 100m.
>
> In order to balance U, according to manual, I would use hFacW. I get
> a very different result if I do sum(drF * hFacW). Results from
> matlab (for 2D hFac's)...
>
> sum(drF .* hfacW(1,:)) = 90
> sum(drF .* hfacC(1,:)) = 100
>
> Seems I don't quite understand hfacW. Any ideas on what I did wrong
> here?
>
> Thanks
>
> David
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list