Code Monkey home page Code Monkey logo

Comments (4)

jerabaul29 avatar jerabaul29 commented on July 1, 2024 1

Closing for now, as the answer is "read the readme for more details" :) . You may also want to look at the code in details to understand exactly what is being done.

from cylinder2dflowcontroldrl.

jerabaul29 avatar jerabaul29 commented on July 1, 2024

I have not used this code for a long time, but if I remember well, this is just a question of sign - i.e. is the force / "drag" coefficient computed from the point of view of the cylinder or the point of view of the fluid, and which conventions are chosen. To make things even more confusing, we are interested in reducing the drag, while the DRL algorithm tries to maximize the reward; so, in the end, you always end up with a different "sign" needed between the Cd and the reward.

from cylinder2dflowcontroldrl.

troy1729 avatar troy1729 commented on July 1, 2024

Thanks that is good direction for me to look into regarding negative sign. Also the plot in the paper shows reduction of cd from ~3.4 to ~3 for Re 100. But while training, even the drag magnitude is in the 0.1 scale. So is it the drag force that is getting printed while training or I'm missing something?

For instance "Rec Area: 0.0113, drag: -0.1635, lift: 0.0957"

from cylinder2dflowcontroldrl.

jerabaul29 avatar jerabaul29 commented on July 1, 2024

The information printed in terminal is raw "force", "non scaled" data, while the paper presents "scaled" drag coefficient etc. I.e. this is because the terminal spits out drag, while the paper reports the scaled drag coefficient. See the section "Confusing choices in the code" of the README file, and the links to the discussions #3 and #6 therein.

from cylinder2dflowcontroldrl.

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.