CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Error in SU2_DEF - mesh connectivity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2018, 05:14
Default Error in SU2_DEF - mesh connectivity
  #1
New Member
 
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 8
lazzini is on a distinguished road
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.
Attached Files
File Type: zip files.zip (45.9 KB, 6 views)
lazzini is offline   Reply With Quote

Old   March 17, 2018, 06:17
Default
  #2
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10
talbring is on a distinguished road
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:
talbring is offline   Reply With Quote

Old   March 18, 2018, 21:00
Default
  #3
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
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
fpalacios is offline   Reply With Quote

Old   March 19, 2018, 04:22
Default
  #4
New Member
 
Lucia
Join Date: Nov 2017
Posts: 7
Rep Power: 8
lazzini is on a distinguished road
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
lazzini is offline   Reply With Quote

Old   March 19, 2018, 09:33
Default
  #5
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Great! if you are developing SU2 do not forget to take a look at www.su2devsociety.org.

Best,
Francisco
fpalacios is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] problems generating clean mesh Christian_tt OpenFOAM Meshing & Mesh Conversion 2 June 20, 2019 05:39
[ICEM] 2D hybrid mesh (unstructured mesh highly dependent on structured mesh parameters) shubham jain ANSYS Meshing & Geometry 1 April 10, 2017 05:03
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 06:21
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52


All times are GMT -4. The time now is 12:27.