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

GroovyBC time varying lookup table

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2022, 10:30
Default GroovyBC time varying lookup table
  #1
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4
MFWilliams is on a distinguished road
Hello,


Is it possible to implement a time varying velocity boundary conditon using GroovyBC with a polynomial or lookup table?


I have been having great trouble trying to implement a time varying velocity BC. The aim is to simulate inlet velocity from three identical heart beats in a row and I have started trying GroovyBC to limited success.


I have managed to create a boundary condition for one heart cycle using GroovyBC and a polynomial but am not sure how to repeat it for three cycles.



I have now been looking at this post to try implement a lookup velocity table, but this one does not seem to be time varying.



Quote:
Originally Posted by dferrando View Post
Thank you very much. I do that but I have another Error that I don't understand:

Code:
--> FOAM FATAL IO ERROR: 
attempt to read beyond EOF

file: /home/diego/OpenFOAM/diego-4.1/run/windAroundBuildings/0/U.boundaryField.inlet.lookuptables.valueColumns at line 74.

    From function virtual Foam::Istream& Foam::ITstream::read(Foam::token&)
    in file db/IOstreams/Tstreams/ITstream.C at line 82.

FOAM exiting
My lookuptables and expresion:

Code:
    inlet
    {
        type            groovyBC;
        lookuptables
        (
            {
            name profileX;
            fileName "$FOAM_CASE/0/U1.csv";
            outOfBounds clamp;
            readerType csv;
            hasHeaderLine 2;
            timeColumn 0;
            valueColumns 1;
            separator " "; 
            }        
        );
        lookuptables
        (
            {
            name profileY;
            fileName "$FOAM_CASE/0/U1.csv";
            outOfBounds clamp;
            readerType csv;
            hasHeaderLine 2;
            timeColumn 0;
            valueColumns 2;
            separator " "; 
            }        
        );
        lookuptables
        (
            {
            name profileZ;
            fileName "$FOAM_CASE/0/U1.csv";
            outOfBounds clamp;
            readerType csv;
            hasHeaderLine 2;
            timeColumn 0;
            valueColumns 3;
            separator " "; 
            }   
       );

    valueExpression "vector(profileX(pos().z), profileY(pos().z), profileZ(pos().z))";
    }
Thanks Bernhard!

Diego.

Please can someone tell me if it is possible to implement a time varying velocity lookup table GroovyBC?



Thank you for your help in advance
Merlin
MFWilliams is offline   Reply With Quote

Reply

Tags
groovybc, lookup table, time varying boundary, velocity bc


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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 41 August 23, 2023 02:48
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56


All times are GMT -4. The time now is 01:19.