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

How to add time varying body force

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 1, 2005, 09:40
Default Hi, How to add a time varyi
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi,

How to add a time varying body force into the solver? Can anyone suggest point to me a direction?

pei-ying
hsieh is offline   Reply With Quote

Old   November 4, 2005, 18:16
Default Hi, OK, no one answered thi
  #2
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi,

OK, no one answered this question. But, I found something. This is what I did:

dimensionedVector BF
(
"BF", dimensionSet(0,1,-2,0,0), vector(0,1,0)
);

BF = amplitude * (Foam::sin(2.0 * 3.14 * runTime.value()/0.001)) * BF;

Info<< "bodyForce:" << BF << endl;

// Pressure-velocity PISO corrector
{
// Momentum predictor

fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ turbulence->divR(U)
);

solve(UEqn == BF -fvc::grad(p));

Pei
hsieh is offline   Reply With Quote

Old   July 26, 2010, 11:43
Default A question about applying moments to an object
  #3
Member
 
Dave
Join Date: Jul 2010
Posts: 97
Rep Power: 7
daveatstyacht is on a distinguished road
I am looking to apply a varying moment to a dynamic mesh problem where the value of the "force" creating the moment is equal to the force acting on the object, but offset at a distance to produce a moment (fixed distance application point for the moment, but not actually acting on the surface of the mesh). Would the method employed here be applicable to that and if so is it a matter of just changing the units to force*distance where the force is that of the current time step (or even previous time step) multiplied by a predefined distance? I am trying to set the driving force of a sail equal to the resistance acting on the hull of a vessel but acting at the center of effort of the sail and hence creating a trimming moment.

-Dave
daveatstyacht is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time Varying Equations Boris Besancon FLUENT 1 January 14, 2010 13:01
time varying inlet velocity Zhe Liu CFX 0 July 31, 2008 06:56
sinsoudial time varying BC cfd-student CFX 4 May 1, 2008 19:06
Large varying body force vs. Rhie-chow correction john Main CFD Forum 1 May 23, 2007 02:27
Time Varying BC A.S. CD-adapco 1 January 31, 2005 07:37


All times are GMT -4. The time now is 04:20.