|
[Sponsors] |
August 30, 2023, 05:09 |
Flow solver with source terms
|
#1 |
New Member
Join Date: Feb 2018
Posts: 27
Rep Power: 8 |
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? |
|
September 1, 2023, 04:41 |
|
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21 |
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. |
|
September 1, 2023, 05:13 |
|
#3 | |
New Member
Join Date: Feb 2018
Posts: 27
Rep Power: 8 |
Quote:
|
||
|
|
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 |