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

Forces and moments calculation with .VTU volume file file

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By abhijithmoni
  • 2 Post By giovanni.medici
  • 2 Post By bigfootedrockmidget

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2023, 02:54
Default Forces and moments calculation with .VTU volume file file
  #1
New Member
 
Abhijith
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 6
abhijithmoni is on a distinguished road
I'm trying to calculate forces and moments over a wing surface. SU2 is writing a .VTU file but there are no boundary zones or surfaces to integrate and find the forces and moments. Is there a workaround to split the volume zone as boundaries to perform the required calculation. Please help me with this.


Thanks
Abhijith
rk1 likes this.
abhijithmoni is offline   Reply With Quote

Old   June 20, 2023, 04:56
Default
  #2
Member
 
Giovanni Medici
Join Date: Mar 2014
Posts: 48
Rep Power: 12
giovanni.medici is on a distinguished road
Quote:
Originally Posted by abhijithmoni View Post
I'm trying to calculate forces and moments over a wing surface. SU2 is writing a .VTU file but there are no boundary zones or surfaces to integrate and find the forces and moments. Is there a workaround to split the volume zone as boundaries to perform the required calculation. Please help me with this.


Thanks
Abhijith
Dear Abhijith,

SU2 outputs two *.VTU (s), one for the volume and one for the surface

Quoting directly the tutorials : https://su2code.github.io/tutorials/Inviscid_Bump/


Quote:
Any boundary markers that are listed in the MARKER_PLOTTING option will be written into the surface solution vizualization file.
I hope it helps. I think there are also other options, like force-breakdown, don't know whether they are still supported

SU2 v7: Forces breakdown file?

For sure I used that feature in the past.

It was something like adding to your cfg file the following:

Code:
BREAKDOWN_FILENAME= forces_breakdown.txt
WRT_FORCES_BREAKDOWN = YES
abhijithmoni and CleverBoy like this.
giovanni.medici is offline   Reply With Quote

Old   June 20, 2023, 04:58
Default
  #3
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Hi,
Just rerun it with 1 iteration and write a PARAVIEW_MULTIBLOCK instead of a regular PARAVIEW.
You can also get the coefficients directly in SU2.

Just add AERO_COEFF to HISTORY_OUTPUT
The coefficients are computed over the surfaces in MARKER_MONITORING
using REF_LENGTH, REF_AREA and REF_ORIGIN_MOMENT_X (and _Y and _Z)
bigfootedrockmidget is offline   Reply With Quote

Old   June 21, 2023, 10:13
Default
  #4
New Member
 
Abhijith
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 6
abhijithmoni is on a distinguished road
Dear Giovanni (@giovanni.medici) and @bigfootedrockmidget,

Thanks for both of your inputs. I did the following changes
Code:
OUTPUT_FILES = (PARAVIEW)
to

Code:
OUTPUT_FILES = (PARAVIEW_MULTIBLOCK)
But the output was just a .vtm file without any data written in it. I have attached images with the configuration file for your reference.

Ideally, I require the volume file (eg. flow.vtu) with the boundary zone to do some postprocessing, I managed to get the surface_flow file already.

Please help me fix the error.

Many thanks. I really appreciate the your time and inputs.

Best
Abhijith
Attached Images
File Type: png Multi_block1.png (8.9 KB, 12 views)
File Type: png Multi_block2.png (11.1 KB, 9 views)
Attached Files
File Type: txt naca.txt (7.2 KB, 2 views)
abhijithmoni is offline   Reply With Quote

Old   June 21, 2023, 18:26
Default
  #5
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
What is the content of the vtm file? It is a plain text file and it should contain the names of the vtu files, and the vtu files should have been written to a separate folder.
bigfootedrockmidget is offline   Reply With Quote

Old   June 21, 2023, 18:57
Default
  #6
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
...and the vtm file can be loaded in paraview and you will have all information available. You can then use 'extract block' to select specific mesh elements like the interior or a boundary.
bigfootedrockmidget is offline   Reply With Quote

Old   June 23, 2023, 02:45
Default
  #7
New Member
 
Abhijith
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 6
abhijithmoni is on a distinguished road
@bigfootedrockmidget thanks for your reply and input. I'm attaching the .vtm file for your reference. There was an error in opening the .vtm file because it is looking for the following files: WING.vtu, FARFIELD.vtu and SYMMETRY.vtu. Even though I have them on both MARKER_PLOTTING= (WING, FARFIELD, SYMMETRY ) and MARKER_MONITORING= (WING, FARFIELD, SYMMETRY). I end up only getting a surface_flow.vtu file as an output.
Attached Images
File Type: png Multi_block3.png (14.9 KB, 9 views)
Attached Files
File Type: txt naca.txt (7.2 KB, 5 views)
File Type: txt .vtm.txt (536 Bytes, 5 views)
abhijithmoni is offline   Reply With Quote

Old   June 23, 2023, 16:11
Default
  #8
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Is your vtm file named flow.vtm? Does su2 create a folder called flow that contains the vtu files?
bigfootedrockmidget is offline   Reply With Quote

Old   June 24, 2023, 01:32
Default
  #9
New Member
 
Abhijith
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 6
abhijithmoni is on a distinguished road
No, SU2 does not create any folder. The file is named just ".vtm". The files shown in the attached image in my previous reply are the only contents inside the working directory.

SU2 Version: Release 7.5.0 "Blackbird"
abhijithmoni is offline   Reply With Quote

Old   June 24, 2023, 04:43
Default
  #10
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Your config file works for me with the latest develop version. What operating system are you running on? And did you compile the code yourself or did you use one of the prebuilt executables?

It looks like in your case, su2 does not have any prefix for the filename so your filename is .vtm. And since the prefix is used to create the folder, it cannot write the folder.
bigfootedrockmidget is offline   Reply With Quote

Old   June 24, 2023, 09:14
Default
  #11
New Member
 
Abhijith
Join Date: Nov 2020
Location: United Kingdom
Posts: 19
Rep Power: 6
abhijithmoni is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
Your config file works for me with the latest develop version. What operating system are you running on? And did you compile the code yourself or did you use one of the prebuilt executables?

It looks like in your case, su2 does not have any prefix for the filename so your filename is .vtm. And since the prefix is used to create the folder, it cannot write the folder.
I'm on Windows OS, I'm using the prebuilt executable SU2_CFD.exe.

I have also tried the latest version of SU2 with full administrative previlage but it works the same way.

Is there a way to add a file name to .vtm ?
abhijithmoni is offline   Reply With Quote

Reply

Tags
forces and moments, paraview, su2, tecplot, wing


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
Calculation of forces and moments acting on a wing in OpenFOAM. puck1 OpenFOAM 1 May 11, 2024 07:54
Forces, moments and torque calculation foamiste OpenFOAM Post-Processing 5 October 7, 2022 05:16
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" ds4719 Main CFD Forum 14 February 18, 2022 19:05
objects oscillate at high speed causing collapse in Dynamic mesh and overset mesh ca insane OpenFOAM Running, Solving & CFD 0 May 17, 2020 23:35
Residuals and forces spiraling out of control before failing edomalley1 OpenFOAM Running, Solving & CFD 3 September 7, 2018 11:42


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