Code Monkey home page Code Monkey logo

Comments (1)

jerabaul29 avatar jerabaul29 commented on July 19, 2024 1

Hi @ruyigolden-cudgel ,

If you change the Re through the velocity, without changing the mesh / numerical timestep, you will likely break the CFL condition and your simulation will diverge. This is likely what the NaN indicate / how they arise.

We have looked at a bit higher Res in the following study:

As you can see, the Re was changed by changing the value of nu in the code:

https://github.com/thw1021/Cylinder2DFlowControlGeneral/blob/ac5ea7fd304dedefa4489790e45c42ca9428440e/RobustDRLCylinder2DControl/Env2DCylinder.py#L157-L158

I also think we had to tune the mesh (see the different baselines / meshes for the different Re values):

https://github.com/thw1021/Cylinder2DFlowControlGeneral/tree/master/RobustDRLCylinder2DControl/simulation_base

Note that this code is not suited for going much higher in Re than what is done there. We are going quite a bit higher in Re in newer works (for example, see https://www.mdpi.com/2076-0825/11/12/359 ), but that requires using another code. Nowadays I would recommend using another system than this old code, for example see https://github.com/venturi123/DRLinFluids (described in https://pubs.aip.org/aip/pof/article-abstract/34/8/081801/2846652/DRLinFluids-An-open-source-Python-platform-of?redirectedFrom=fulltext , also available on ArXiv at https://arxiv.org/abs/2205.12699 ).

Closing the issue, please see the linked materials.

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.