Coder Social home page Coder Social logo

Comments (10)

sarriegi avatar sarriegi commented on July 16, 2024 1

Hello @pvelissariou1 and @saeed-moghimi-noaa, I wanted to let you know that I was able to get the rads.64.nc to show non-zero values, by modifying the ADCIRC/src/timestep.F file. More specifically, I modified the IF stametemtn in line 698:
image
Adding the .OR. ABS(NRS).EQ.5 to the IF statement.

Thank you so much for your help!

Angelos

from coastalapp.

saeed-moghimi-noaa avatar saeed-moghimi-noaa commented on July 16, 2024

Hi @sarriegi

Please check adcirc cap, there might be a statement to overwrite that field. In that case you may comment those lines out otherwise you may dig deeper. @pvelissariou1 may have other suggestions.

Good luck,
-Saeed

from coastalapp.

pvelissariou1 avatar pvelissariou1 commented on July 16, 2024

@sarriegi Hi Angelos. I think that ADCIRC writes the wave data to rads.64 only when swan is compiled with adcirc (e.g., adcswan). Can you share your fort.15 file?

from coastalapp.

sarriegi avatar sarriegi commented on July 16, 2024

Thank you for your responses @saeed-moghimi-noaa and @pvelissariou1 ! I am attaching the fort.15 file.

Angelos
fort15.txt

from coastalapp.

sarriegi avatar sarriegi commented on July 16, 2024

Hello @saeed-moghimi-noaa, I found these lines that concern the rads.64.nc file:
image
And
image
Do you know what should I do? Should I uncomment the two ALLOCATE lines in the first picture? Or set the flag in the second picture? Or neither?

Angelos

from coastalapp.

pvelissariou1 avatar pvelissariou1 commented on July 16, 2024

@sarriegi I don't think you can achieve anything by modyfing the ADCIRC code as is. I believe that data in the rads.64 file are written when CSWAN is active (I didn't go through the code thoroughly). The file is generated but fields are not written. In your case the radiation stresses are produced outside SWAN. An approach is to dump the ESMF fields fron the NUOPC cap. Saeed has implemented a "dump" option for the exported fields. Can you look at this in the NUOPC cap?

from coastalapp.

sarriegi avatar sarriegi commented on July 16, 2024

Hello @pvelissariou1 , the only file I see a mention of rads.64 (with 'grep -R rads.64') is the write_output.F file of ADCIRC. The dump option would be in adc_cap.F90?

Angelos

from coastalapp.

pvelissariou1 avatar pvelissariou1 commented on July 16, 2024

@sarriegi Yes the dump option is in adc_cap.F90 and in the subroutine State_GetFldPtr_
For your radiation stresses (sxx,syy,sxy) you call in adc_cap.F90 you have:
call State_getFldPtr_(ST=importState,fldname='sxx',fldptr=dataPtr_sxx, &
rc=rc,dump=.false.,timeStr=timeStr)
Try dump=.true.
for syy and sxy stress blocks switch State_getFldPtr to State_getFldPtr_ to get the "dump" option.
Play with these to see what happens

from coastalapp.

sarriegi avatar sarriegi commented on July 16, 2024

Thank you so much!

Angelos

from coastalapp.

pvelissariou1 avatar pvelissariou1 commented on July 16, 2024

@sarriegi Great, thank you for letting us know.

from coastalapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.