Comments (3)
Hi Andre,
I've run into a bit of a problem getting it to work on the new openFOAM version. After our meeting on Friday I've tried to run the training on both the old mesh by Darshan and my newly created one. On both tries I got the same error:
--> FOAM FATAL IO ERROR: (openfoam-2012)
Entry 'logStdMax' not found in dictionary "/home/y0095063/DRL_py/env/sample_0/trajectory_1/0/U.boundaryField.cylinder"
That happens right at the start and I have not yet found a solution for it.
I have noo real idea what could cause this as this "U.boundaryField.cylinder" file has never existed and to my knowledge is also not mentioned in the code, so I have no idea why it now demands that this file exists.
I've uploaded the current state of tthe DRL_py directory and also 1 example trajectory where you can see the error.
I hope you can help me on this.
Best Regards
Fabian
from active_flow_control_past_cylinder_using_drl.
Hi Fabian,
the error is raised by OpenFOAM when reading the entries in the 0/U file. Within the definition of agentRotatingWallVelocity
, an entry logStdMax is expected (a value for clipping the log of the standard deviation output of the policy network). This entry is missing in the documentation and also in Darshan's base case. To fix this issue, add logStdMax 2.0;
to the boundary condition, e.g.:
cylinder
{
type agentRotatingWallVelocity;
// center of cylinder
origin (0.2 0.2 0.0);
// axis of rotation; normal to 2D domain
axis (0 0 1);
// name of the policy network; must be a torchscript file
policy "policy.pt";
// when to start controlling
startTime 0.01;
// how often to evaluate policy
interval 20;
// if true, the angular velocity is sampled from a Gaussian distribution
// if false, the mean value predicted by the policy is used
train true;
// currently ignored
absOmegaMax 0.05;
// limit log of standard deviation
logStdMax 2.0;
}
Best, Andre
from active_flow_control_past_cylinder_using_drl.
Hi Andre,
thank you! That did work and it is now running as it should.
Best Regards
Fabian
from active_flow_control_past_cylinder_using_drl.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from active_flow_control_past_cylinder_using_drl.