|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Jem
Join Date: Dec 2016
Posts: 19
Rep Power: 11 ![]() |
Hello.
Im Trying to simulate a Forced-Driven Fluidflow using IcoFoam. Im using the "CavityFlow" Tutorial as a base and simply want to add a Force in x direction. I think its simple but im new to Openfoam and im not getting it right. Any help appreciated! |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 15 ![]() |
As a quick pointer in the right direction: look at fvOptions. It allows you to add a source term, which can be your force.
Sent from my iPhone using CFD Online Forum mobile app |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Jem
Join Date: Dec 2016
Posts: 19
Rep Power: 11 ![]() |
So i added an fvOptions file in the system but its not working
![]() \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvOptions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // momentumSource { type vectorExplicitSetValue; active on; // selectionMode all; // vectorExplicitSetValueCoeffs { injectionRate { F ( 10 0 0 ); } } } // ************************************************** *********************** // |
|
|
|
|
|
|
|
|
#4 | |
|
Senior Member
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 15 ![]() |
Quote:
https://github.com/OpenFOAM/OpenFOAM...plicitSource.H should suite your needs better. It allows to add a source term. |
||
|
|
|
||
|
|
|
#5 |
|
New Member
Jem
Join Date: Dec 2016
Posts: 19
Rep Power: 11 ![]() |
Im sorry, i dont get ...
How exactly does the fvOptions have to look like? Or is there another way to add a Force, i copied the icoFoam.C and renamed it, but i dont know what i have to change to add a force. Pls i need help im already so far behind in time. |
|
|
|
|
|
|
|
|
#6 |
|
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 14 ![]() |
It is not possible to enable any fvOptions for icoFoam at the time of writing.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
|
|
|
|
|
|
|
#7 |
|
New Member
Shenhui Ruan
Join Date: Nov 2021
Location: Karlsruhe
Posts: 16
Rep Power: 6 ![]() |
Maybe my answer is very delayed.
I have added fvOptions into the icoFoam, which is called icoFoamFvO. Please refer to the GitHub page. https://github.com/Ruansh233/RshOpen...ain/icoFoamFvO |
|
|
|
|
|
|
|
|
#8 |
|
New Member
Hussam
Join Date: Feb 2022
Posts: 4
Rep Power: 5 ![]() |
This is great. Have you tried and validate it?
|
|
|
|
|
|
|
|
|
#9 |
|
New Member
Shenhui Ruan
Join Date: Nov 2021
Location: Karlsruhe
Posts: 16
Rep Power: 6 ![]() |
Hi, Hussam.
I just added the fvOptions into icoFOAM and ran a case to ensure the source term is enforced. However, I didn't validate the solver with any benchmark case. |
|
|
|
|
|
![]() |
| Tags |
| cavityflow, fluidflow, force, force-driven, icofoam |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add force (vary with time) onto a moving body | Yage | OpenFOAM Running, Solving & CFD | 3 | November 10, 2015 15:33 |
| Add Axial Force Goal from previous solution | -mAx- | FloEFD, FloWorks & FloTHERM | 2 | March 25, 2015 07:21 |
| How to add a time dependent source term to icoFoam? | kirikù | OpenFOAM | 2 | March 23, 2014 21:24 |
| New sixDoFRigidBody BC working with laplaceFaceDecomposition | Ya_Squall2010 | OpenFOAM Running, Solving & CFD | 13 | April 17, 2013 03:04 |
| DEFINE_CG_MOTION and pressure force | Teo Fumagalli | FLUENT | 0 | April 11, 2008 11:25 |