Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using VEGCetation #351

Open
able93 opened this issue Jan 7, 2025 · 1 comment
Open

Error using VEGCetation #351

able93 opened this issue Jan 7, 2025 · 1 comment

Comments

@able93
Copy link

able93 commented Jan 7, 2025

Hello,

I do use VEGEtation before now, and it works. I tried to test the VEGCetation module within SWAN when coupled with ROMS, so it uses SVEG_COAWST instead of SVEG in computing vegetation dissipation. This however gives an error. First, within the file for SWAN vegetation dissipation, one can enter parameters (5 values even though it reads the vegetation parameters from ROMS, but no information on the drag coefficient it uses eventually) which often works:

INPGRID NPLANTS CURVILINEAR 0 0 460 510 EXC 9.999000e+003 &
NONSTATIONARY 20170815.000000 3 HR 20170914.000000
VEGEtation [iveg] < [height] [diamtr] [nstems] [drag] > (as seen from ../src_coawst/swanpre1.f)
VEGETATION 1 0.3 0.23 300 0.2

Meanwhile to use SVEG_COAWST (where I believe the drag coefficient is varied and maybe recalculated), it becomes
&& VEGCEtation < [height] [diamtr] [nstems] [drag] >
&& to use coawst you need
VEGCETATION 0.3 0.23 300 0.2

However, this does not work, as it gives an error: 'Youngs modulus is negative or zero' which comes from (../src_coawst/swanpre1.f)

CALL INREAL ('YOUNGSMOD' ,YY,'REQ', 0.)
IF ( YY.LE.0. ) THEN
CALL MSGERR (2,'Youngs modulus is negative or zero')

However, if I add maybe a number at the end of it like the one below even though it should be just four values, then it works. But the model stops soon.
VEGCETATION 0.3 0.23 300 0.2 1

Is there something I am not getting correctly about it?

Thanks

@tarankalra1
Copy link

I have looked at this a while back. SVEGC would compute drag coefficient. You can output this using the netcdf file. Try following the example laid out in veg_test under projects. Young's modulus is irrelevant if you don't use flexible vegetation option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants