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

I really have no idea how should I rewrite csv file for U inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2023, 06:58
Default I really have no idea how should I rewrite csv file for U inlet
  #1
New Member
 
Březňák
Join Date: Jun 2020
Location: Prag
Posts: 21
Rep Power: 5
breznak is on a distinguished road
Hello,

I have a given velocity profile in csv file. The file looks like this:

Code:
X, Y, Z, Ux, Uy, Uz ,
-1.95E-02,-1.70E-02,4.08E-01,0.00E+00,0.00E+00,0.00E+00,
-1.94E-02,-1.70E-02,4.08E-01,0.00E+00,0.00E+00,0.00E+00,
-1.94E-02,-1.69E-02,4.08E-01,-1.76E-03,-1.57E-03,4.35E-01,
-1.95E-02,-1.69E-02,4.08E-01,0.00E+00,0.00E+00,0.00E+00,
-1.94E-02,-1.68E-02,4.08E-01,-2.13E-03,-6.79E-04,5.45E-01,
...
and so on
It means there are Ux Uy Uz values for every each coordinates.

And my ../0/U looks like this:
Code:
inlet
{
    type         uniformFixedValue;
    uniformValue
    {
        type             tableFile;
        format           csv;
        nHeaderLine      4;              // number of header lines
        refColumn        0;              // time column index
        componentColumns (1);            // data column index
        separator        ",";            // optional (defaults to ",")
        mergeSeparators  no;             // merge multiple separators
        file             "U_inlet.csv";
   }
   
}
How should I rewrite csv file? My simulation is steady so I am using simpleFoam so there cannot be time values...
breznak is offline   Reply With Quote

Old   June 15, 2023, 02:47
Default
  #2
Member
 
Vinzenz Götz
Join Date: Mar 2021
Location: Munich, Germany
Posts: 31
Rep Power: 5
Vinzmann is on a distinguished road
Why do you use a csv for your velocity BC if your simulation is steady state?
You should consider using a transient solver or just use the last value for U for your simulation.
Vinzmann is offline   Reply With Quote

Reply


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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 14:30
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


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