|
[Sponsors] |
How are the source terms calculated in flow_source.cpp? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 12, 2022, 11:10 |
How are the source terms calculated in flow_source.cpp?
|
#1 |
New Member
Join Date: Apr 2018
Posts: 3
Rep Power: 8 |
Hello,
I have been modifying the source code of SU2 for some time. I have created necessary classes and functions but I'm having some trouble calculating momentum source terms. It will be an implicit and steady state solution. Just like the Body Force and Gravitational Force, I would like to apply a constant force in Newton to a certain zone. The problem is I can only have information about the force in Newton unit at each node. I can't figure out how to transform this force into momentum source term in flow_sources.cpp file. For body forces, an equation as such below is used, residual[iDim+1] = -Volume * U_i[0] * Body_Force_Vector[iDim] / Force_Ref; In which the Force_Ref is calculated in CEuler_Solver.cpp by using reference density, reference pressure and consequently reference velocity. And Body_Force_Vector usually involves three components with 0,0,9.81. Can I use the same approach in my case? Any help is appreciated, Thank you in advance. |
|
|
|
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 |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 15:30 |
[Other] Tabulated thermophysicalProperties library | chriss85 | OpenFOAM Community Contributions | 62 | October 2, 2022 04:50 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |