Closed turtle-mei closed 4 years ago
Hi,
Yes, basically you will need to change this file as you said, which is basically a scripted description of your geometry in gmsh format:
and possibly a bit of this, which is setting up the relevant parameters there:
I also recommend that you base your work on the more recent code available there:
https://github.com/jerabaul29/Cylinder2DFlowControlDRLParallel
Let me know if anything is unclear. You may need to spend a bit of time learning about gmsh at first. Also, gmsh, fenics, and tensorforce are all packages undergoing rapid development, and the code here (and on the parallel repo) is already 2 and 1 years old respective, so if you want to use the latest features of the underlying packages, you may have a bit of porting / small updates to do.
I think I know the general idea,thanks for your help! Thank you.
hi, I apologize for distracting you. I would be very grateful for any help! i change the geo and parameters. when i run the code,there are the below error.
`Info : 5913 vertices 11054 elements
Info : Writing 'mesh/turek_2d.msh'...
Info : Done writing 'mesh/turek_2d.msh'
Info : Stopped on Mon Apr 27 01:48:42 2020
Converting from Gmsh format (.msh, .gmsh) to DOLFIN XML format
Expecting 5110 vertices
Found all vertices
Expecting 9810 cells
Found all cells
Traceback (most recent call last):
File "/usr/bin/dolfin-convert", line 132, in
------------------------------------------------------------------------- DOLFIN encountered an error. If you are not able to resolve this issue *** using the information listed below, you can ask for help at
*** fenics-support@googlegroups.com
Remember to include the error message listed below and, if possible, include a minimal running example to reproduce the error.
------------------------------------------------------------------------- Error: Unable to read data from XML file. Reason: Error while parsing XML with status "Start-end tags mismatch". Where: This error was encountered inside XMLFile.cpp. *** Process: 0
DOLFIN version: 2017.2.0 Git changeset: unknown *** -------------------------------------------------------------------------
Aborted` but when i comment out the part that about define the jet surface in the geometry_2d.template_geo ,it run normally. i feel so comfused.
Have you ever been able to create any mesh with custom geometry successfully before?
if yes, have you changed anything regarding the packages used? For example, gmsh or other version?
Are you sure you use the right gmsh version? You should use the one there: https://github.com/jerabaul29/Cylinder2DFlowControlDRL/blob/master/gmsh . Other versions may not be compatible. Please check that you well use the gmsh in question, not something else linked by your system.
have you checked on the other issues if you get the answer to your problems:
https://github.com/jerabaul29/Cylinder2DFlowControlDRL/issues/12
https://github.com/jerabaul29/Cylinder2DFlowControlDRL/issues/4
Other than that, there is not much I can do, as things quickly become machine / installation / case specific.
Hi, Mr.Jean, I want to change the geometry ,change the cylinder to other geometry.Should i change the geometry_2d.template_geo file? and i want to change it directly the shape rather the code .so sorry to distract you .i would be so grateful for any suggestions.