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

How to add a time dependent source term to icoFoam?

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

View Poll Results: is it usefull?
a little 2 20.00%
fairly 2 20.00%
very much 6 60.00%
Voters: 10. You may not vote on this poll

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2009, 11:38
Question How to add a time dependent source term to icoFoam?
  #1
New Member
 
kirikù karabà
Join Date: Jul 2009
Location: Palermo, Italia
Posts: 2
Rep Power: 0
kirikù is on a distinguished road
Hi All,
I'm a new OF-1.5 user on a ubuntu 8.04 64 bit machine and I'm trying to run a DNS simulation on a channelOodles-like mesh, with air incompressible flow, moved only by an imposed constant pressure gradient. The boundary conditions are the same of channelOodles tutorial, but I used icoFoam solver to which I''ve added the constant pressure gradient term, for running a direct numerical simulation without pre-imposed numerical models.

I've correctly setted the case, adding a new constant vector to trasportProperties file:

nu nu [0 2 -1 0 0 0 0] 1.8e-5;
DT DT [0 2 -1 0 0 0 0] 0.002;
myVector myVector [0 1 -2 0 0 0 0] (-8e-4 0 0);

then, adding a reference to it in createFields.H file:

dimensionedVector myVector
(
transportProperties.lookup("myVector")
);


and, finally, adding the new constant tensor in the icoFoam.C file:

fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)
+ myVector
);

The simulation works correctly and I obtain the prescribed theoric laminar velocity profile.
Now I must run the same simulation introducing a time dependent variable pressure gradient term - myVector(t) - which would have to develop a turbulent flow regime. The fact that I continue to use icoFoam is dued to the necessity to demonstrate the expected flow regime without prior knowing the flow behaviour.

I'm not able to properly configure the solver and the other necessary files for introducing myVector(t) term.

Can someone help me?

Thanks to All,
Bye.

Gianfranco
kirikù is offline   Reply With Quote

Old   July 16, 2009, 09:06
Default
  #2
New Member
 
Denis
Join Date: Jun 2009
Posts: 4
Rep Power: 16
entitledx is on a distinguished road
Just bumping this up. I'm also really interested in knowing how to add a time dependent source term in openFoam.
entitledx is offline   Reply With Quote

Old   March 23, 2014, 20:24
Default
  #3
New Member
 
Winson Chen
Join Date: Mar 2014
Posts: 5
Rep Power: 12
wchen is on a distinguished road
Hi guys,

I know it's been almost 5 years but I just started a project trying to add a time dependent pressure gradient in the UEqn in icofoam. Did any of you figure out how to do it?

Thanks
wchen is offline   Reply With Quote

Reply

Tags
time dep. 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
time dependent source using DEFINE_SOURCE T81 Fluent UDF and Scheme Programming 5 February 28, 2011 17:23
Add a source term into the Y mom. eq. Rucy FLUENT 0 December 12, 2005 04:24
Add source term in species equation zhou1 FLUENT 1 October 21, 2003 06:28
UDF: source term dependent on location Vladimir Krejci FLUENT 0 April 2, 2003 08:38
Time Dependent Heat Sources Leon Mills Phoenics 1 July 3, 2001 05:22


All times are GMT -4. The time now is 08:57.