Comments (13)
Hi!
Strange, I had not seen this before.
-
Are you using the singularity container?
-
What happens if you replace the
printind
by a normalprint
in generate_msh.py line 11 (and possibly at other locations in the code where printind may be called)? This is where the error message points to.
from cylinder2dflowcontroldrl.
Another issue I have seen several times is failure to call gmsh from within the program; however at this point it does not look like this is the problem you have.
from cylinder2dflowcontroldrl.
Yes,I used the singularity container.I replaced the printind by a normal print just now,it didn't work.
Here are my steps: in empty_simulation,i changed jet_angle=5,and then plot=false,last run make_mesh.py.
So I wonder if there are any details i missed.
appreciated your answer
from cylinder2dflowcontroldrl.
What error messages do you obtain replacing the printind calls by some print calls? Can you show me your terminal output?
from cylinder2dflowcontroldrl.
still the same mistake.
iUFL can be obtained from https://github.com/MiroK/ufl-interpreter
Make converge initial state for 10000 iterations
--- call init ---
Traceback (most recent call last):
File "make_mesh.py", line 2, in
env.resume_env(plot=False, remesh=True)
File "/home/yang/Downloads/jet_angle5/Cylinder2DFlowControlWithRL/empty_simulation/env.py", line 181, in resume_env
simu_name = simu_name)
File "/home/yang/Downloads/jet_angle5/Cylinder2DFlowControlWithRL/empty_simulation/../Env2DCylinder.py", line 132, in init
self.start_class(complete_reset=True)
File "/home/yang/Downloads/jet_angle5/Cylinder2DFlowControlWithRL/empty_simulation/../Env2DCylinder.py", line 183, in start_class
generate_mesh(self.geometry_params, template=self.geometry_params['template'])
File "/home/yang/Downloads/jet_angle5/Cylinder2DFlowControlWithRL/empty_simulation/generate_msh.py", line 11, in generate_mesh
print(template)
File "/usr/local/lib/python2.7/dist-packages/printind/printind_function.py", line 38, in printiv
string = inspect.getframeinfo(frame[0]).code_context[0].strip()
TypeError: 'NoneType' object has no attribute 'getitem'
Aborted (core dumped)
from cylinder2dflowcontroldrl.
I am sorry, I do not understand what you did / where the problem is. I know other people managed to change the number and position of jets, and we also did it successfully. Can you turn plot to True and see if something changes?
from cylinder2dflowcontroldrl.
sorry, I mean put back plot=500 .
from cylinder2dflowcontroldrl.
well ,i will have a try .thank you
from cylinder2dflowcontroldrl.
As a side note: other people had problems in the past to get the gmsh calls here to work:
This is because, 'stupidly', gmsh is not installed inside the singularity container.
To solve this there are 2 solutions:
-
Export the gmsh provided in the repo to the singularity container: this is what is recommended in the Readme:
export PATH="SET_YOUR_PATH/gmsh-git-Linux64/bin:$PATH
-
Update the two lines listed above to directly execute the gmsh provided in the repo. For this to work, you will need to first do a
chmod
to make the gmsh binary executable, and then call it in a./
fashion in the code.
from cylinder2dflowcontroldrl.
Well,with the material you offered,I successfully sovle the problem.
from cylinder2dflowcontroldrl.
Great to hear, many thanks for the update!
For the records, what was the problem / which step solved it? :)
from cylinder2dflowcontroldrl.
There are lots of versions 3.+ about gmsh,maybe some of them are not suitable.So I used 3.0.6 that you talked about in readme.md at last,and it works.
I realize that I shuold follow your guideline at the begin,and I can avoid lots of problems.
So kind of you!
from cylinder2dflowcontroldrl.
Ok. Good to know it works when you follow the Readme ;) .
from cylinder2dflowcontroldrl.
Related Issues (20)
- How to customize the .xdmf file for initial conditions? HOT 7
- How the reward function working HOT 3
- No file in mesh directory HOT 5
- How to define Neumann boundary condition HOT 1
- symmetric case HOT 4
- Problem with creating a new mesh HOT 3
- about changing the geometry HOT 5
- could not connect to display ":0.0" HOT 9
- Can not get the "fenics-and-more.img" file HOT 5
- Could not open image; image format not recognized HOT 15
- Change the model and run singlerunner from Ann_ controlled_ flow_ Singlerun folder, did not get the same result HOT 3
- New airfoil model encountered mesh convertion probelm HOT 2
- About Q<0.06 HOT 1
- Lift fluctuations resulting from DRL training using the OpenFOAM platform HOT 2
- Negative drag values while training HOT 4
- issues about running single_runner.py HOT 10
- higher Reynolds problem HOT 1
- Download the Singularity container HOT 2
- problems about singularity container parts HOT 3
- related to value of mean Drag HOT 3
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 cylinder2dflowcontroldrl.