Unknown patchField type inletParabolicVelocity for patch type patch
Opened this issue · 3 comments
Hi,
When I ran python DRLinFluids_cylinder/launch_multiprocessing_traning_cylinder.py
, I got the error:
[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] Unknown patchField type inletParabolicVelocity for patch type patch
Valid patchField types are :
83
(
SRFFreestreamVelocity
SRFVelocity
SRFWallVelocity
activeBaffleVelocity
activePressureForceBaffleVelocity
advective
calculated
codedFixedValue
It seems that OpenFOAM can't find the lib required.
Any solution?
Hi @zonexo ,
You should compile the custome boundary condition.
Please clone this repository first (actually we only need the newbc folder), and following this step to compile it easily.
Ok! I finally got this working after compiling the libs.
I ran the cylinder case and I got a warning:
WARNING:root:No min_value bound specified for state.
Is this important?
I let it run for a while and I stop.
However, when I re-run, I got the error:
<class 'FileExistsError'>: [Errno 17] File exists: '/scratch/users/nus/tsltaywb/ai/drlinfluids/DRLinFluids/examples/cylinder2D_multiprocessing/env01/record'`.
Exception in thread Thread-5:
Do I have to delete the "record" dir before running?
Here's one of my dir:
(DRLinFluids) Singularity> ls env01//
0/ 0.055/ 0.13/ 0.205/ 0.28/ 0.355/ 0.43/ fluent.msh processor1/ processor4/ system/
0.005/ 0.08/ 0.155/ 0.23/ 0.305/ 0.38/ 0.455/ postProcessing/ processor2/ record/ z.foam
0.03/ 0.105/ 0.18/ 0.255/ 0.33/ 0.405/ constant/ processor0/ processor3/ run.sh
Thanks.
The WARNING:root:No min_value bound specified for state
is generated by the DRL backend package tensorforce, and you may ignore it since there is no limitation for the value bound of state (all state value are from OpenFOAM simulation).
For your second question, yes, you need delete the record file or just rename it before you restart. DRLiunFluids will not overwrite your record file.