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

How are the source terms calculated in flow_source.cpp?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2022, 11:10
Default How are the source terms calculated in flow_source.cpp?
  #1
New Member
 
Join Date: Apr 2018
Posts: 3
Rep Power: 8
aerojoe is on a distinguished road
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.
aerojoe 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
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


All times are GMT -4. The time now is 11:42.