|
[Sponsors] |
March 16, 2018, 06:14 |
Error in SU2_DEF - mesh connectivity
|
#1 |
New Member
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 9 |
Hello,
I am trying to run a shape optimization of a two-phase nozzle. I am starting with a simple inviscid case. I am currently working on the branch feature_turbo2phase. The code seems to work fine, but the problem is the mesh created through SU2_DEF. As a check, we re-did the mesh with another branch, feature_turbomachinery, and everything works fine. When comparing the two meshes, we saw that the connectivity of the first one is completely off on the wall. Due to this, even when running finite_differences.py the mesh is not deformed properly, and the gradients in output are always 0. I attach here my config file Moore.cfg, the initial mesh inv_mesh.su2, and the two meshes created, nozzle_ffd_feature_turbo2phase and nozzle_ffd_feature_turbomachinery. I did not change anything outside SU2_CFD and the config_structure.cpp, but the first merge with feature_turbomachinery was made almost a year ago, maybe something went wrong. Did someone encounter this problem? If I do the mesh with another branch, the code itself is working fine, and does what it has to do. The problem seems limited to the command SU2_DEF. |
|
March 17, 2018, 07:17 |
|
#2 |
Super Moderator
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 11 |
Hi Lucia,
it is not the connectivity that is different, it is the global index of the points associated to the FFD box which differs in both cases. That is weird, I just had a quick look at some diffs, but I cannot find the reason for that. With the feature_turbomachinery branch finite differences are working ? And how does it behave with the current develop ? Thanks, Tim
__________________
Developer Director @ SU2 Foundation Get involved:
|
|
March 18, 2018, 22:00 |
|
#3 |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
Tim is right, if I were you I would take a look at
void CSurfaceMovement::WriteFFDInfo(CSurfaceMovement** surface_movement, CGeometry **geometry, CConfig **config) { } void CSurfaceMovement::MergeFFDInfo(CGeometry *geometry, CConfig *config) { } The problem may be related with Get_PointIndex or GlobalPoint[iFFDBox][iSurfacePoints] Best, Francisco |
|
March 19, 2018, 05:22 |
|
#4 |
New Member
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 9 |
Thanks for the replies.
First, yes, with the branch feature_turbomachinery everything is working, finite differences and adjoint. I checked the CSurfaceMovement, everything seems ok. However, I managed to solve somehow the issue. It's more a trick than a solution, I went on the feature_turbomachinery branch, configure everything and then switch to the 2phase branch and compile. I don't know why, but in this way it works. So the code itself seems to be correct. I'll try to have a look and make some tests to find the source of the error, but in the meantime I can make my simulations |
|
March 19, 2018, 10:33 |
|
#5 |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
Great! if you are developing SU2 do not forget to take a look at www.su2devsociety.org.
Best, Francisco |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] problems generating clean mesh | Christian_tt | OpenFOAM Meshing & Mesh Conversion | 2 | June 20, 2019 06:39 |
[ICEM] 2D hybrid mesh (unstructured mesh highly dependent on structured mesh parameters) | shubham jain | ANSYS Meshing & Geometry | 1 | April 10, 2017 06:03 |
Mesh motion with Translation & Rotation | Doginal | CFX | 2 | January 12, 2014 07:21 |
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation | tommymoose | ANSYS Meshing & Geometry | 48 | April 15, 2013 05:24 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |