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

Initial condition Openfoam V2006

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 2, 2021, 15:36
Default Initial condition Openfoam V2006
  #1
New Member
 
Joaquin Moreno
Join Date: Oct 2020
Posts: 5
Rep Power: 5
joaquinmorenou is on a distinguished road
Hi, I want to use a custom profile of velocity as initial condition in a case, how can I do it without using funkySetFields that is not available in OF v2006?

This is what I've done before in Openfoam 5:

expressions
(
sedimentvelocity
{
field Ua; //field to initialise
fields
(
z Ua
);
lookuptables (
{
name inletprofilesedvel;
outOfBounds clamp;
file "$FOAM_CASE/1d_profil/Ua0.xy";
}
{
name inletprofilesedvelv;
outOfBounds clamp;
file "$FOAM_CASE/1d_profil/Ua2.xy";
}
{
name inletprofilesedvelw;
outOfBounds clamp;
file "$FOAM_CASE/1d_profil/Ua1.xy";
}
);
value uniform (1 0 0);
expression "vector(inletprofilesedvel(pos().z),inletprofilese dvelv(pos().z),inletprofilesedvelw(pos().z))";
keepPatches 1;
}
joaquinmorenou is offline   Reply With Quote

 


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
Free surface issues with interDyMFoam for hydroturbine oumnion OpenFOAM Running, Solving & CFD 0 October 6, 2017 14:05
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24


All times are GMT -4. The time now is 10:16.