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

pimpleFoam Body Force

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

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2016, 23:50
Default How should I define a acceleration-terms.dat in FvOptions-tabulatedAccelerationSource
  #21
New Member
 
金恒
Join Date: Oct 2012
Posts: 17
Rep Power: 13
jinheng is on a distinguished road
hi everyone, I want to define a time-change acceleration in sloshing movement. And maybe Fvoptions is a good way. Similar with tanksloshing3D6dof case in interDyMFoam. I want to define a acceleration term in non-inertial reference frame in interFoam. But I can not read the acceleration-term.dat using Fvoptions due to the formate of file.
So my question is :
1、Is there anywhere tell the formate of tabulatedaccelerationsource.
2、otherthan fvoptions, is there any good method to achieve non-inertial reference frame in interFoam. (I have try to added a "acc" just in the Uequ ,but the alpha.water does not change with "acc")

thanks very much for any advises or help.
Usage
Example usage:
\verbatim
SBM
{
type tabulatedAccelerationSource;
active yes;

tabulatedAccelerationSourceCoeffs
{
timeDataFileName "constant/acceleration-terms.dat";
}
}
\endverbatim

heng Jin
OUC
jinheng is offline   Reply With Quote

Old   October 24, 2016, 03:15
Default
  #22
New Member
 
金恒
Join Date: Oct 2012
Posts: 17
Rep Power: 13
jinheng is on a distinguished road
Quote:
Originally Posted by jinheng View Post
hi everyone, I want to define a time-change acceleration in sloshing movement. And maybe Fvoptions is a good way. Similar with tanksloshing3D6dof case in interDyMFoam. I want to define a acceleration term in non-inertial reference frame in interFoam. But I can not read the acceleration-term.dat using Fvoptions due to the formate of file.
So my question is :
1、Is there anywhere tell the formate of tabulatedaccelerationsource.
2、otherthan fvoptions, is there any good method to achieve non-inertial reference frame in interFoam. (I have try to added a "acc" just in the Uequ ,but the alpha.water does not change with "acc")

thanks very much for any advises or help.
Usage
Example usage:
\verbatim
SBM
{
type tabulatedAccelerationSource;
active yes;

tabulatedAccelerationSourceCoeffs
{
timeDataFileName "constant/acceleration-terms.dat";
}
}
\endverbatim

heng Jin
OUC
And I have attempted this thread in CFD-ONLINE(http://www.cfd-online.com/Forums/ope...blefile-h.html). I use the same format of the tablefile. But it still give me the same errors:
1、Expected a '(' while reading Tuple2, found on line 2 the label 0
2、wrong token type - expected Scalar, found on line 2 the punctuation token '('
jinheng is offline   Reply With Quote

Old   May 16, 2018, 07:40
Default
  #23
New Member
 
Dr. Peyman Davvalo Khongar
Join Date: Mar 2018
Location: Helsinki (Finland)
Posts: 16
Rep Power: 8
peyman.davvalo.khongar is on a distinguished road
Moi!

Check this:


https://github.com/OpenFOAM/OpenFOAM...5900ea5eb546af

Moikka!

Peyman

Last edited by peyman.davvalo.khongar; May 28, 2018 at 03:03.
peyman.davvalo.khongar is offline   Reply With Quote

Old   June 17, 2021, 05:07
Default
  #24
New Member
 
Shuo Mi
Join Date: Nov 2020
Location: London
Posts: 19
Rep Power: 5
Msure is on a distinguished road
Quote:
Originally Posted by be_inspired View Post
Hi Alberto,

In case the force is managed in the first way ( force term in the flux), my question is if Ueqn must be modified or not.

I am working over the rotorDiskSource (OF2.3.0) and some pressure wiggles happen when discreted body forces are included directly over the Ueqn.
I think that your approach could improve this situation.
http://www.openfoam.org/mantisbt/view.php?id=1313

A*U = H + F

I think it should be:
A*U = H - grad[p] + F
U=H/A - 1/A*grad[p] + F/A

Excuse me for using the same topic but there are other topics where others have reported this bug and no answer have been given.

http://www.cfd-online.com/Forums/ope...rce-model.html
http://www.cfd-online.com/Forums/ope...l-wiggles.html

I am trying to implement the body force in this other way and I am not able to do it correctly. Could you please help me?
Hi,

Have you solved the problem? I am adding a direct force immersed boundary method into pimpleFoam, if I add the extra force from solid in the momentum predictor step, it can run but the results are wrong. I think I should add the force in pressure iterative step, because the force is chaging in every step. Thanks.
Msure is offline   Reply With Quote

Old   November 4, 2021, 20:59
Default
  #25
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11
mostanad is on a distinguished road
Quote:
Originally Posted by Msure View Post
Hi,

Have you solved the problem? I am adding a direct force immersed boundary method into pimpleFoam, if I add the extra force from solid in the momentum predictor step, it can run but the results are wrong. I think I should add the force in pressure iterative step, because the force is chaging in every step. Thanks.

Hi Shuo,
Have you solved the problem? I am doing the same thing for IBM, but the results are so dependent on the Number of Piso loops. I think something is wrong with the way I am imposing my force in pressure piso loop. So can you please share to me your experience?
Cheers,
Mohammad
mostanad is offline   Reply With Quote

Reply

Tags
body force, pimplefoam, source term

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
Body force at the cell face Souviktor Fluent UDF and Scheme Programming 0 March 31, 2009 08:54
DPM Body Force Sandilya Garimella FLUENT 1 April 8, 2008 03:30
Problems with SUPG body force term FEM question Main CFD Forum 0 January 21, 2006 17:51
how to include body force in cfx selvam R.P CFX 4 November 25, 2005 04:01
UDF for lift force on a bluff body sawa FLUENT 2 April 11, 2005 03:06


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