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

Add Force to IcoFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2016, 16:53
Red face Add Force to IcoFoam
  #1
New Member
 
Jem
Join Date: Dec 2016
Posts: 19
Rep Power: 9
Jem01 is on a distinguished road
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!
Jem01 is offline   Reply With Quote

Old   December 12, 2016, 17:19
Default
  #2
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 14
tiam is on a distinguished road
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
tiam is offline   Reply With Quote

Old   December 12, 2016, 20:23
Default
  #3
New Member
 
Jem
Join Date: Dec 2016
Posts: 19
Rep Power: 9
Jem01 is on a distinguished road
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 );
}
}
}

// ************************************************** *********************** //
Jem01 is offline   Reply With Quote

Old   December 13, 2016, 07:43
Default
  #4
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 119
Rep Power: 14
tiam is on a distinguished road
Quote:
Originally Posted by Jem01 View Post
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 );
}
}
}

// ************************************************** *********************** //
I think this one
https://github.com/OpenFOAM/OpenFOAM...plicitSource.H
should suite your needs better. It allows to add a source term.
tiam is offline   Reply With Quote

Old   January 4, 2017, 07:07
Default
  #5
New Member
 
Jem
Join Date: Dec 2016
Posts: 19
Rep Power: 9
Jem01 is on a distinguished road
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.
Jem01 is offline   Reply With Quote

Old   September 14, 2021, 15:29
Default
  #6
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
It is not possible to enable any fvOptions for icoFoam at the time of writing.
HPE is offline   Reply With Quote

Old   May 7, 2024, 10:56
Default
  #7
New Member
 
Shenhui Ruan
Join Date: Nov 2021
Location: Karlsruhe
Posts: 16
Rep Power: 4
fly_light is on a distinguished road
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
fly_light is offline   Reply With Quote

Old   June 12, 2024, 03:52
Default
  #8
New Member
 
Hussam
Join Date: Feb 2022
Posts: 4
Rep Power: 4
Hussamsababha is on a distinguished road
This is great. Have you tried and validate it?
Hussamsababha is offline   Reply With Quote

Old   June 12, 2024, 08:44
Default
  #9
New Member
 
Shenhui Ruan
Join Date: Nov 2021
Location: Karlsruhe
Posts: 16
Rep Power: 4
fly_light is on a distinguished road
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.
fly_light is offline   Reply With Quote

Reply

Tags
cavityflow, fluidflow, force, force-driven, icofoam


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
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


All times are GMT -4. The time now is 22:59.