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

Question about how to output the aerodynamic force distribution

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By pcg

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2022, 06:05
Default Question about how to output the aerodynamic force distribution
  #1
New Member
 
Tomoki Yamazaki
Join Date: Jun 2022
Posts: 3
Rep Power: 4
tyamazaki is on a distinguished road
Hi, everyone.

Yesterday, I started the calculation about the wind turbine blade using SU2( ver7.3.1 blackbird ).
I want to know how to output the aero force distribution on the rotor blade.
I plan to use the force distribution for our in-house FEM structure calculation codes.

I am looking into the information, but I can not find it. ( I only found how to output the sum of aerodynamic force and moment on a solid surface... )

If anyone knows about the aerodynamic force distribution output,
would you mind telling me any information?

I really appreciate any help you can provide.

Tomoki
tyamazaki is offline   Reply With Quote

Old   June 14, 2022, 21:15
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
Hi,

This is an example that extracts forces for all points on a surface:
https://github.com/su2code/SU2/tree/...ating_NACA0012
jdp810 and tyamazaki like this.
pcg is offline   Reply With Quote

Old   June 16, 2022, 13:26
Default
  #3
New Member
 
Tomoki Yamazaki
Join Date: Jun 2022
Posts: 3
Rep Power: 4
tyamazaki is on a distinguished road
Quote:
Originally Posted by pcg View Post
Hi,

This is an example that extracts forces for all points on a surface:
https://github.com/su2code/SU2/tree/...ating_NACA0012
I appreciate your kindness.
Reading your sources, I understand how to get the distribution of aerodynamic forces.

By the way, I copied your sources to my local environment to confirm the execution behavior and rebuilt SU2 with python wrappers and mpi options to run it.
I succeeded in building SU2 with only python wrappers but failed building
SU2 with python wrappers and mpi options.
My local environment is set to python3.7.9 on virtualenv( installed mpi4py) and swig3.0.12 in CentOS7.

If you have any ideas, would you mind telling me to solve this situation?
This additional question is out of scope for the first question, so should I ask the same question in SU2 git issues...?

The output errors in meson-log.txt are bellow:

Code:
Message: Boost sources found.
Program swig found: YES (/usr/bin/swig)
Running command: /***/***/***/work/SU2/venv/bin/python3 -c import mpi4py; print(mpi4py.get_include())
--- stdout ---
/***/***/***/work/SU2/venv/lib/python3.7/site-packages/mpi4py/include

--- stderr ---


Message: Using mpi4py from /***/***/***/work/SU2/venv/lib/python3.7/site-packages/mpi4py/include
Pkg-config binary for 1 is cached.
Determining dependency 'python-3.7m' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_LIBDIR]: /***/***/***/soft/Python-3.7.9/build/lib/pkgconfig
env[PKG_CONFIG_PATH]: /opt/intel/compilers_and_libraries_2019.1.144/linux/mkl/bin/pkgconfig
Called `/usr/bin/pkg-config --modversion python-3.7m` -> 0
3.7
env[PKG_CONFIG_LIBDIR]: /***/***/***/soft/Python-3.7.9/build/lib/pkgconfig
env[PKG_CONFIG_PATH]: /opt/intel/compilers_and_libraries_2019.1.144/linux/mkl/bin/pkgconfig
Called `/usr/bin/pkg-config --cflags python-3.7m` -> 0
-I/data/home/yamazaki/soft/Python-3.7.9/build/include/python3.7m
env[PKG_CONFIG_LIBDIR]: /***/***/***/soft/Python-3.7.9/build/lib/pkgconfig
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: /opt/intel/compilers_and_libraries_2019.1.144/linux/mkl/bin/pkgconfig
Called `/usr/bin/pkg-config --libs python-3.7m` -> 0
-L/***/***/***/soft/Python-3.7.9/build/lib -lpython3.7m
env[PKG_CONFIG_LIBDIR]: /***/***/***/soft/Python-3.7.9/build/lib/pkgconfig
env[PKG_CONFIG_PATH]: /opt/intel/compilers_and_libraries_2019.1.144/linux/mkl/bin/pkgconfig
Called `/usr/bin/pkg-config --libs python-3.7m` -> 0
-L/***/***/***/soft/Python-3.7.9/build/lib -lpython3.7m
WARNING: extract_all_objects called without setting recursive
keyword argument. Meson currently defaults to
non-recursive to maintain backward compatibility but
the default will be changed in the future.


SU2_PY/pySU2/meson.build:27:2: ERROR: Tried to form an absolute path to a source dir.
You should not do that but use relative paths instead.

To get include path to any directory relative to the current dir do

incdir = include_directories(dirname)

After this incdir will contain both the current source dir as well as the
corresponding build dir. It can then be used in any subdirectory and
Meson will take care of all the busywork to make paths work.

Dirname can even be '.' to mark the current directory. Though you should
remember that the current source and build directories are always
put in the include directories by default so you only need to do
include_directories('.') if you intend to use the result in a
different subdirectory.
tyamazaki is offline   Reply With Quote

Old   June 16, 2022, 20:35
Default
  #4
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
You can open a discussion on GitHub, maybe someone with a similar setup will know what to do.
pcg is offline   Reply With Quote

Old   June 16, 2022, 23:15
Default
  #5
New Member
 
Tomoki Yamazaki
Join Date: Jun 2022
Posts: 3
Rep Power: 4
tyamazaki is on a distinguished road
I got it. I appreciate your kind response!!!
tyamazaki 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
Output of force Andrea-wwwwwwww REEF3D 2 May 26, 2021 05:35
How to obtain radial force distribution graph from FLUENT? mrswordf1sh FLUENT 2 March 29, 2016 11:04
Aerodynamic Force, analytical calculation punnag Main CFD Forum 0 December 31, 2014 17:45
[OpenFOAM] spatial distribution of force coefficients in paraview&openfoam kkpal ParaView 1 April 21, 2013 08:15
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 23:02


All times are GMT -4. The time now is 13:21.