|
[Sponsors] |
December 12, 2016, 15:53 |
Add Force to IcoFoam
|
#1 |
New Member
Jem
Join Date: Dec 2016
Posts: 19
Rep Power: 9 |
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! |
|
December 12, 2016, 16:19 |
|
#2 |
Senior Member
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 14 |
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 |
|
December 12, 2016, 19:23 |
|
#3 |
New Member
Jem
Join Date: Dec 2016
Posts: 19
Rep Power: 9 |
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 ); } } } // ************************************************** *********************** // |
|
December 13, 2016, 06:43 |
|
#4 | |
Senior Member
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 14 |
Quote:
https://github.com/OpenFOAM/OpenFOAM...plicitSource.H should suite your needs better. It allows to add a source term. |
||
January 4, 2017, 06:07 |
|
#5 |
New Member
Jem
Join Date: Dec 2016
Posts: 19
Rep Power: 9 |
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. |
|
September 14, 2021, 14:29 |
|
#6 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
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 |
|
May 7, 2024, 09:56 |
|
#7 |
New Member
Shenhui Ruan
Join Date: Nov 2021
Location: Karlsruhe
Posts: 16
Rep Power: 4 |
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 |
|
June 12, 2024, 02:52 |
|
#8 |
New Member
Hussam
Join Date: Feb 2022
Posts: 4
Rep Power: 4 |
This is great. Have you tried and validate it?
|
|
June 12, 2024, 07:44 |
|
#9 |
New Member
Shenhui Ruan
Join Date: Nov 2021
Location: Karlsruhe
Posts: 16
Rep Power: 4 |
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 14:33 |
Add Axial Force Goal from previous solution | -mAx- | FloEFD, FloWorks & FloTHERM | 2 | March 25, 2015 06:21 |
How to add a time dependent source term to icoFoam? | kirikù | OpenFOAM | 2 | March 23, 2014 20:24 |
New sixDoFRigidBody BC working with laplaceFaceDecomposition | Ya_Squall2010 | OpenFOAM Running, Solving & CFD | 13 | April 17, 2013 02:04 |
DEFINE_CG_MOTION and pressure force | Teo Fumagalli | FLUENT | 0 | April 11, 2008 10:25 |