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

Flow solver with source terms

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2023, 05:09
Default Flow solver with source terms
  #1
New Member
 
Join Date: Feb 2018
Posts: 27
Rep Power: 8
CarlosLozano is on a distinguished road
Hi,
I would like to run the flow solver with a user-defined, non-vanishing source term. For example: solve flow around an airfoil with the condition that the x-momentum conservation equation, say, is zero everywhere except at a certain (user-specified) point where its value is, say, 10^-4. Is there a simple way to do that without having to actually get into the code?
CarlosLozano is offline   Reply With Quote

Old   September 1, 2023, 04:41
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
You have to go into the code at this moment, there is no way to do this in either the config file or with the python wrapper (I think).
But most of the source term definition is in one file, src/numerics/flow_sources.cpp
You can have a look at the gravity source term to get an idea of what to do.
bigfootedrockmidget is offline   Reply With Quote

Old   September 1, 2023, 05:13
Default
  #3
New Member
 
Join Date: Feb 2018
Posts: 27
Rep Power: 8
CarlosLozano is on a distinguished road
Quote:
Originally Posted by bigfootedrockmidget View Post
You have to go into the code at this moment, there is no way to do this in either the config file or with the python wrapper (I think).
But most of the source term definition is in one file, src/numerics/flow_sources.cpp
You can have a look at the gravity source term to get an idea of what to do.
OK, thanks a lot. I'll take a look and give it a try.
CarlosLozano 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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
[openSmoke] LaminarSMOKE compilation error mdhfiz OpenFOAM Community Contributions 8 July 2, 2024 11:32
Ncrit for a glider Xfoil. How to use it. GPT4 answer AlanMattanó Main CFD Forum 0 April 10, 2023 13:16
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


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