├── .gitignore ├── Allwclean ├── Allwmake ├── LICENSE ├── README.md ├── create_test_data ├── drlfoam ├── __init__.py ├── agent │ ├── __init__.py │ ├── agent.py │ ├── ppo_agent.py │ └── tests │ │ ├── __init__.py │ │ ├── test_agent.py │ │ └── test_ppo_agent.py ├── constants.py ├── environment │ ├── __init__.py │ ├── environment.py │ ├── rotating_cylinder.py │ ├── rotating_pinball.py │ └── tests │ │ ├── __init__.py │ │ ├── test_environment.py │ │ ├── test_rotating_cylinder.py │ │ └── test_rotating_pinball.py ├── execution │ ├── __init__.py │ ├── buffer.py │ ├── local.py │ ├── manager.py │ ├── setup.py │ ├── slurm.py │ └── tests │ │ ├── __init__.py │ │ ├── test_local.py │ │ ├── test_manager.py │ │ └── test_slurm.py ├── tests │ ├── __init__.py │ └── test_utils.py ├── utils.py └── version.py ├── examples ├── config_orig.yml ├── create_dummy_policy.py ├── jobscript └── run_training.py ├── openfoam ├── RunFunctions ├── src │ ├── agentRotatingWallVelocity │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── agentRotatingWallVelocityFvPatchVectorField.C │ │ └── agentRotatingWallVelocityFvPatchVectorField.H │ └── pinballRotatingWallVelocity │ │ ├── Make │ │ ├── files │ │ └── options │ │ ├── pinballRotatingWallVelocityFvPatchVectorField.C │ │ └── pinballRotatingWallVelocityFvPatchVectorField.H └── test_cases │ ├── rotatingCylinder2D │ ├── 0.org │ │ ├── U │ │ └── p │ ├── Allclean │ ├── Allrun │ ├── Allrun.pre │ ├── constant │ │ ├── transportProperties │ │ └── turbulenceProperties │ ├── policy.pt │ └── system │ │ ├── blockMeshDict │ │ ├── controlDict │ │ ├── decomposeParDict │ │ ├── fvSchemes │ │ ├── fvSolution │ │ └── setExprBoundaryFieldsDict │ └── rotatingPinball2D │ ├── 0.org │ ├── U │ └── p │ ├── Allclean │ ├── Allrun │ ├── Allrun.pre │ ├── constant │ ├── transportProperties │ └── turbulenceProperties │ ├── policy.pt │ └── system │ ├── blockMeshDict │ ├── controlDict │ ├── decomposeParDict │ ├── fvSchemes │ ├── fvSolution │ ├── setExprBoundaryFieldsDict │ └── topoSetDict ├── references.md ├── requirements.txt └── setup-env /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/.gitignore -------------------------------------------------------------------------------- /Allwclean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/Allwclean -------------------------------------------------------------------------------- /Allwmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/Allwmake -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/README.md -------------------------------------------------------------------------------- /create_test_data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/create_test_data -------------------------------------------------------------------------------- /drlfoam/__init__.py: -------------------------------------------------------------------------------- 1 | from .utils import * -------------------------------------------------------------------------------- /drlfoam/agent/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/agent/__init__.py -------------------------------------------------------------------------------- /drlfoam/agent/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/agent/agent.py -------------------------------------------------------------------------------- /drlfoam/agent/ppo_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/agent/ppo_agent.py -------------------------------------------------------------------------------- /drlfoam/agent/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drlfoam/agent/tests/test_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/agent/tests/test_agent.py -------------------------------------------------------------------------------- /drlfoam/agent/tests/test_ppo_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/agent/tests/test_ppo_agent.py -------------------------------------------------------------------------------- /drlfoam/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/constants.py -------------------------------------------------------------------------------- /drlfoam/environment/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/environment/__init__.py -------------------------------------------------------------------------------- /drlfoam/environment/environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/environment/environment.py -------------------------------------------------------------------------------- /drlfoam/environment/rotating_cylinder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/environment/rotating_cylinder.py -------------------------------------------------------------------------------- /drlfoam/environment/rotating_pinball.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/environment/rotating_pinball.py -------------------------------------------------------------------------------- /drlfoam/environment/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drlfoam/environment/tests/test_environment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/environment/tests/test_environment.py -------------------------------------------------------------------------------- /drlfoam/environment/tests/test_rotating_cylinder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/environment/tests/test_rotating_cylinder.py -------------------------------------------------------------------------------- /drlfoam/environment/tests/test_rotating_pinball.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/environment/tests/test_rotating_pinball.py -------------------------------------------------------------------------------- /drlfoam/execution/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/execution/__init__.py -------------------------------------------------------------------------------- /drlfoam/execution/buffer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/execution/buffer.py -------------------------------------------------------------------------------- /drlfoam/execution/local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/execution/local.py -------------------------------------------------------------------------------- /drlfoam/execution/manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/execution/manager.py -------------------------------------------------------------------------------- /drlfoam/execution/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/execution/setup.py -------------------------------------------------------------------------------- /drlfoam/execution/slurm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/execution/slurm.py -------------------------------------------------------------------------------- /drlfoam/execution/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drlfoam/execution/tests/test_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/execution/tests/test_local.py -------------------------------------------------------------------------------- /drlfoam/execution/tests/test_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/execution/tests/test_manager.py -------------------------------------------------------------------------------- /drlfoam/execution/tests/test_slurm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/execution/tests/test_slurm.py -------------------------------------------------------------------------------- /drlfoam/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /drlfoam/tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/tests/test_utils.py -------------------------------------------------------------------------------- /drlfoam/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/utils.py -------------------------------------------------------------------------------- /drlfoam/version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/drlfoam/version.py -------------------------------------------------------------------------------- /examples/config_orig.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/examples/config_orig.yml -------------------------------------------------------------------------------- /examples/create_dummy_policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/examples/create_dummy_policy.py -------------------------------------------------------------------------------- /examples/jobscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/examples/jobscript -------------------------------------------------------------------------------- /examples/run_training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/examples/run_training.py -------------------------------------------------------------------------------- /openfoam/RunFunctions: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/RunFunctions -------------------------------------------------------------------------------- /openfoam/src/agentRotatingWallVelocity/Make/files: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/src/agentRotatingWallVelocity/Make/files -------------------------------------------------------------------------------- /openfoam/src/agentRotatingWallVelocity/Make/options: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/src/agentRotatingWallVelocity/Make/options -------------------------------------------------------------------------------- /openfoam/src/agentRotatingWallVelocity/agentRotatingWallVelocityFvPatchVectorField.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/src/agentRotatingWallVelocity/agentRotatingWallVelocityFvPatchVectorField.C -------------------------------------------------------------------------------- /openfoam/src/agentRotatingWallVelocity/agentRotatingWallVelocityFvPatchVectorField.H: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/src/agentRotatingWallVelocity/agentRotatingWallVelocityFvPatchVectorField.H -------------------------------------------------------------------------------- /openfoam/src/pinballRotatingWallVelocity/Make/files: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/src/pinballRotatingWallVelocity/Make/files -------------------------------------------------------------------------------- /openfoam/src/pinballRotatingWallVelocity/Make/options: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/src/pinballRotatingWallVelocity/Make/options -------------------------------------------------------------------------------- /openfoam/src/pinballRotatingWallVelocity/pinballRotatingWallVelocityFvPatchVectorField.C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/src/pinballRotatingWallVelocity/pinballRotatingWallVelocityFvPatchVectorField.C -------------------------------------------------------------------------------- /openfoam/src/pinballRotatingWallVelocity/pinballRotatingWallVelocityFvPatchVectorField.H: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/src/pinballRotatingWallVelocity/pinballRotatingWallVelocityFvPatchVectorField.H -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/0.org/U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/0.org/U -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/0.org/p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/0.org/p -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/Allclean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/Allclean -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/Allrun: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/Allrun -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/Allrun.pre: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/Allrun.pre -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/constant/transportProperties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/constant/transportProperties -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/constant/turbulenceProperties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/constant/turbulenceProperties -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/policy.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/policy.pt -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/system/blockMeshDict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/system/blockMeshDict -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/system/controlDict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/system/controlDict -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/system/decomposeParDict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/system/decomposeParDict -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/system/fvSchemes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/system/fvSchemes -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/system/fvSolution: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/system/fvSolution -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingCylinder2D/system/setExprBoundaryFieldsDict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingCylinder2D/system/setExprBoundaryFieldsDict -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/0.org/U: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/0.org/U -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/0.org/p: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/0.org/p -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/Allclean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/Allclean -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/Allrun: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/Allrun -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/Allrun.pre: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/Allrun.pre -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/constant/transportProperties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/constant/transportProperties -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/constant/turbulenceProperties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/constant/turbulenceProperties -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/policy.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/policy.pt -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/system/blockMeshDict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/system/blockMeshDict -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/system/controlDict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/system/controlDict -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/system/decomposeParDict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/system/decomposeParDict -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/system/fvSchemes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/system/fvSchemes -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/system/fvSolution: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/system/fvSolution -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/system/setExprBoundaryFieldsDict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/system/setExprBoundaryFieldsDict -------------------------------------------------------------------------------- /openfoam/test_cases/rotatingPinball2D/system/topoSetDict: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/openfoam/test_cases/rotatingPinball2D/system/topoSetDict -------------------------------------------------------------------------------- /references.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/references.md -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup-env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OFDataCommittee/drlfoam/HEAD/setup-env --------------------------------------------------------------------------------