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

Attribute error in pyAMG/SU2

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By PENGGEGE777

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2023, 04:56
Exclamation Attribute error in pyAMG/SU2
  #1
New Member
 
Esdras
Join Date: Dec 2022
Posts: 3
Rep Power: 3
Esdras is on a distinguished road
Hey guys, I just installed pyAMG and switched to the feature_adapt branch of SU2, I then tried running the first example showed in the SU2 examples section of the pyAMG page and this error comes up, I'm honestly at a loss. I know it's not the configuration file as I literally just downloaded it from the example page, any help would be highly appreciated.

Some background info: At first I was having problems because for some reason the _amgio module wasn't installed, but I solved that problem by following the instructions in this forum: https://github.com/su2code/SU2/discussions/1700


f7c76cf2-2b8b-4ce5-9df4-e1bcc43a4f56.jpg
Esdras is offline   Reply With Quote

Old   January 13, 2023, 13:41
Default
  #2
Member
 
PENG YAN
Join Date: Jul 2021
Location: Italy
Posts: 34
Rep Power: 5
PENGGEGE777 is on a distinguished road
I think the error message is very clear, you miss some options in the config file.

Try to add these options in your config and run it again:

% ------------- MESH ADAPTATION PARAMETER ------------%
% Type of sensor used for adaptation. Options include GOAL (adjoint-based), MACH, PRES
PYADAP_SENSOR= MACH
% 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= 2.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)

% Value for ITER for the flow solver at each level
PYADAP_FLOW_ITER= (2999, 4999, 6999)
giovanni.medici likes this.
PENGGEGE777 is offline   Reply With Quote

Old   January 14, 2023, 07:53
Default
  #3
Member
 
Giovanni Medici
Join Date: Mar 2014
Posts: 47
Rep Power: 12
giovanni.medici is on a distinguished road
Dear Esdras,
which branch are you currently working with? feature_adap, if I recall correctly was a relatively stable one, but the last update was like 3 years ago. So I'd say it is stuck to 7.0.3.
giovanni.medici is offline   Reply With Quote

Reply

Tags
error, pyamg


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
[OpenFOAM] ParaView command in Foam-extend-4.1 mitu_94 ParaView 0 March 4, 2021 13:46
Creating labelList from cells with certain attribute juhuettn OpenFOAM Programming & Development 8 November 10, 2019 23:06
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25


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