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

Mesh Adaptation in SU2 Blackbird

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2020, 17:07
Default Mesh Adaptation in SU2 Blackbird
  #1
New Member
 
veronica
Join Date: Nov 2020
Posts: 3
Rep Power: 5
BlueWind is on a distinguished road
Hi!

I am a new user of SU2, and I would like to apply the mesh adaptation feature on the test case "pitching_naca64a010_rans".

With the older version (6.2.0), I generated the new mesh using SU2_MSH, which seems to be not implemented in the last version. For the new version, I can't find any indication about the sequence of passages needed to perform simulations with adaptive mesh.

If anyone knows more about this problem, any help is gladly accepted. Thank you.
BlueWind is offline   Reply With Quote

Old   November 28, 2020, 11:15
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13
pcg is on a distinguished road
This might help https://github.com/su2code/SU2/issues/948
There was also a presentation on the last SU2 conference: https://su2foundation.org/su2conference2020/
pcg is offline   Reply With Quote

Old   November 29, 2020, 05:58
Default
  #3
New Member
 
veronica
Join Date: Nov 2020
Posts: 3
Rep Power: 5
BlueWind is on a distinguished road
Hi pcg,
thank you for your prompt response.
Following these indications I took the steps:

1. downloaded the feature_adapt branch.

2. downloaded the Adaptive 2D NACA 0012 example (https://pyamg.saclay.inria.fr/pyamge....html#2dnaca): adap_NACA0012.cfg, mesh_NACA0012_inv.su2, NACA0012_ini.dat.

3. added the following lines to the config:
% Type of sensor used for adaptation
% Options include GOAL (adjoint-based), MACH, PRES
PYADAP_SENSOR= GOAL
% Objective function used for goal-oriented adaptation
OBJECTIVE_FUNCTION= LIFT
% Maximum cell size for adaptation
PYADAP_HMAX= 500.0
% Minimum cell size for adaptation
PYADAP_HMIN= 1e-9
% Gradation factor (typically 1.2-1.8)
PYADAP_HGRAD= 1.8
% Norm used for adaptation
% 1.0 or 2.0 recommended for inviscid flows
% 4.0 recommeneded for viscid
ADAP_NORM= 4.0
% Approximate mesh size (NPOI) at each level
PYADAP_COMPLEXITY= (30000, 60000, 120000)
% Number of adaptations performed at each level
PYADAP_SUBITE= (3, 3, 3)

4. run the following command: $ python3 SU2_RUN/mesh_adaptation_amg.py -f adap_ONERAM6.cfg -n 6.

The response I have obtained is the following:
SU2-AMG Anisotropic Mesh Adaptation

Mesh adaptation options:
PYADAP_COMPLEXITY : (30000, 60000, 120000)
PYADAP_SUBITE : (2, 2, 2)
PYADAP_SENSOR : MACH
PYADAP_HMAX : 500.0
PYADAP_HMIN : 1e-9
PYADAP_HGRAD : 1.8
PYADAP_FLOW_ITER : (2999, 4999, 6999)
PYADAP_ADJ_ITER : (2999, 4999, 6999)
PYADAP_CFL : (10.0, 15.0, 20.0)
PYADAP_RDG : NO

The ./adap folder was deleted

Generating GMF background surface mesh.
## WARNING: MISSING SU2 MESH FILE KEYWORD: NCORNERS=.
Initial CFD solution is provided.
As expected, a ./ADAP folder was created, containing these docs: amg_back_meshb, config_CFD.cfd, log.err, log.out (sizes 0 byte), mesh_NACA0012_inv.su2 (link to the mesh), NACA0012_ini.dat (link to the file.dat).


Did I perform the procedure correctly? Or did I miss something?
If it is correct and complete, which file contains the adaptive mesh? How can I use it since there is no new .su2 file?
BlueWind is offline   Reply With Quote

Old   December 1, 2020, 15:39
Default
  #4
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 13
pcg is on a distinguished road
I'm afraid my mesh adaptation knowledge does not go much past its existence.
You can ask those questions in the github issue I mentioned before, the developer (Brian) usually replies quickly.
You can also look around the SU2 github for other mesh adaptation-related issues, extra info might be available (I just picked the one with most comments).
pcg is offline   Reply With Quote

Old   December 2, 2020, 04:15
Default
  #5
New Member
 
veronica
Join Date: Nov 2020
Posts: 3
Rep Power: 5
BlueWind is on a distinguished road
Thank you, pcg.
I will look around and maybe ask in github.
BlueWind is offline   Reply With Quote

Reply

Tags
adaptive mesh refinement, mesh adaptation, mesh refinement study


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
Tool to convert OpenFoam mesh to SU2 mesh (2D and 3D) Combas SU2 44 March 12, 2024 00:35
Mesh Adaptation in SU2. What to do with generated files? 7amim SU2 1 July 23, 2018 01:39
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Axisymmetric 2D mesh adaptation - ERROR Pepe CFX 3 May 30, 2011 08:28
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11


All times are GMT -4. The time now is 20:45.