|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Feb 2018
Posts: 29
Rep Power: 9 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 747
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. |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Join Date: Feb 2018
Posts: 29
Rep Power: 9 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 03:52 |
[openSmoke] LaminarSMOKE compilation error | mdhfiz | OpenFOAM Community Contributions | 8 | July 2, 2024 10:32 |
Ncrit for a glider Xfoil. How to use it. GPT4 answer | AlanMattanó | Main CFD Forum | 0 | April 10, 2023 12:16 |
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 |