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, 15: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, 16:19
Default
  #2
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
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, 19: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, 06:43
Default
  #4
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
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, 06: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, 14: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: 932
Rep Power: 12
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

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


All times are GMT -4. The time now is 01:43.