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

Flow solver with source terms

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2023, 04: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, 03:41
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 531
Rep Power: 17
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, 04: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Ncrit for a glider Xfoil. How to use it. GPT4 answer AlanMattanó Main CFD Forum 0 April 10, 2023 12:16
[openSmoke] LaminarSMOKE compilation error mdhfiz OpenFOAM Community Contributions 7 October 4, 2022 13:57
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 23:09.