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

Applying a spatially varying body force term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2022, 04:40
Default Applying a spatially varying body force term
  #1
New Member
 
Join Date: Apr 2022
Posts: 3
Rep Power: 4
pandamaster9 is on a distinguished road
Hello all,
I have been working on the periodic hill problem using Incompressible RANS. I know there is a direct way to implement a body force using BODY_FORCE = (bx,by,bz) in the config file.

However, for my purposes I want to learn how to implement such a body force that is spatially varying throughout the flow field i.e. b(x,y,z) as a vector field, in my su2 config file for the simulation.

Thank you
pandamaster9 is offline   Reply With Quote

Old   April 26, 2022, 10:32
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 465
Rep Power: 13
pcg is on a distinguished road
Hi,
Have a look at this discussion: Adding a configuration option to read a file
We do not have a built-in way to do that, you'd need to write some code.
pcg 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
Adding a body force term in the SIMPLE algorithm karman OpenFOAM Programming & Development 2 June 20, 2022 08:11
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" ds4719 Main CFD Forum 14 February 18, 2022 18:05
Add Work due to body force in the energy equation for a lagrangian solver mneben OpenFOAM Programming & Development 6 January 19, 2016 05:30
How to add a source term (body force) to icoFoam? chris Liu OpenFOAM Programming & Development 4 October 27, 2014 15:38
How to add time varying body force hsieh OpenFOAM Running, Solving & CFD 2 July 26, 2010 11:43


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