|
[Sponsors] |
|
April 2, 2021, 15:36 |
Initial condition Openfoam V2006
|
#1 |
New Member
Joaquin Moreno
Join Date: Oct 2020
Posts: 5
Rep Power: 5 |
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; } |
|
April 18, 2021, 05:30 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,694
Rep Power: 40 |
With setExprFields? Should be largely similar to funkySetFields.
|
|
|
|
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 |