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

Openfoam bodyforce

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2024, 07:49
Default Openfoam bodyforce
  #1
New Member
 
Sangkyu Baek
Join Date: Feb 2024
Posts: 3
Rep Power: 2
skbake94 is on a distinguished road
Hi guys, I am doing a research in a different field but I wanted to connect my research topic to CFD so I recently started learning to use openFoam. I have been trying to reproduce a simulation from a journal and have figured out about most of the settings of the simulation I want to do but this simulation has sin(4y) to x direction as a source term. How can I implement this bodyforce into either simpleFoam or pimpleFoam?

Thanks,
skbake94 is offline   Reply With Quote

Old   February 22, 2024, 17:52
Default
  #2
Member
 
Shravan
Join Date: Mar 2017
Posts: 63
Rep Power: 9
Severus is on a distinguished road
Hello,
You will need to use fvOptions

And probably for the type of force that you have mentioned (a sinusoidal forcing varying spatially), this will be useful to you:
https://www.openfoam.com/documentati...ces-coded.html
See the description on implementation here:
https://www.openfoam.com/documentati...8H_source.html

Finally, I also think this thread might be of help
How to add a body force to a momentum equation
And for an example, see this answer in the same thread


Hope this serves as a starting point for you

Good luck!
Severus is offline   Reply With Quote

Reply

Tags
body force inclusion, pimplefoam, simplefoam

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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM v11 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 0 July 11, 2023 05:34
How to develop OpenFOAM with CMake and popular IDEs cosscholar OpenFOAM Programming & Development 0 March 16, 2022 15:17
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04


All times are GMT -4. The time now is 00:16.