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

prescribe an input boundary condition for the velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2022, 16:30
Exclamation prescribe an input boundary condition for the velocity
  #1
New Member
 
Alice Costa
Join Date: Sep 2022
Posts: 1
Rep Power: 0
alicealmd is on a distinguished road
Hello guys....
I started using OpenFoam recently and I still don't have much experience, so I would like your help regarding a model I'm simulating.
It is an ventilation analysis in full-scale 2D street canyon, and I need to prescribe an input boundary condition for the velocity according to a profile described in a .csv file.
I don't know if the error is in the input data, or in the way the code is written in the zero directory. I would like you to help me on how to proceed with this error.
I'm using OpenFoam's BlueCFD-core 2017 terminal
WhatsApp Image 2022-10-13 at 10.19.32 (4).jpeg

----------------------------------------------------------------------------------//
--> FOAM FATAL IO ERROR:
keyword file is undefined in dictionary "F:/3-SIMULACOES_MESTRADO/VALIDATION/VAL_YANG2/0/U.boundaryField.inlet.profileCoeffs"

file: F:/3-SIMULACOES_MESTRADO/VALIDATION/VAL_YANG2/0/U.boundaryField.inlet.profileCoeffs from line 33 to line 38.

From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 566.

FOAM exiting
-----------------------------------------------------------------------------------//


----------------------------------------------------------------------------------//
U
----------------------------------------------------------------------------------//
dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedProfile;
profile csvFile;
profileCoeffs
{
nHeaderLine 0;
refColumn 0;
componentColumns 3(1 2 3);
separator ";";
mergeSeparators 0;
fileName "0/UProfile.csv";
}
direction (0 0 1);
origin 0;
value nonuniform List<scalar>
}
outlet
{
type zeroGradient;
}
frontandback
{
type empty;
}
top
{
type symmetryPlane;
}
body
{
type fixedValue;
value uniform (0 0 0);
}
ground
{
type fixedValue;
value uniform (0 0 0);
}
}
-------------------------------------------------///



UProfile.csv
------------------------------------------------///
0.12106;1.115;0;0
0.12709;1.125;0;0
0.13497;1.14;0;0
0.14378;1.155;0;0
0.15213;1.1899;0;0
0.1577;1.1999;0;0
0.16466;1.2149;0;0
0.17161;1.2398;0;0
0.17625;1.2647;0;0
0.18367;1.2847;0;0
0.19341;1.3097;0;0
0.20176;1.3197;0;0
0.20686;1.3396;0;0
0.21429;1.3745;0;0
0.22078;1.3994;0;0
0.22866;1.4194;0;0
0.23887;1.4444;0;0
0.24675;1.4693;0;0
0.25557;1.5042;0;0
0.26716;1.5391;0;0
0.27783;1.579;0;0
0.28247;1.6089;0;0
0.28989;1.6388;0;0
0.29731;1.6538;0;0
0.30705;1.6887;0;0
0.31679;1.7385;0;0
0.32514;1.7635;0;0
0.33302;1.7934;0;0
0.34184;1.8332;0;0
0.35019;1.8632;0;0
0.35436;1.8881;0;0
0.35853;1.903;0;0
0.36596;1.913;0;0
0.37199;1.9678;0;0
0.37987;1.9878;0;0
0.38544;2.0276;0;0
0.39332;2.0525;0;0
0.40074;2.1023;0;0
0.40863;2.1223;0;0
0.41558;2.1572;0;0
0.42161;2.192;0;0
0.42811;2.2219;0;0
0.43646;2.2668;0;0
0.44249;2.3066;0;0
0.45037;2.3465;0;0
0.45918;2.3863;0;0
0.46753;2.4312;0;0
0.47495;2.476;0;0
0.48237;2.5258;0;0
0.49026;2.5607;0;0
0.49814;2.6204;0;0
0.50788;2.6653;0;0
0.51391;2.7051;0;0
0.52087;2.745;0;0
0.5269;2.7947;0;0
0.5334;2.8296;0;0
0.53942;2.8545;0;0
0.54592;2.8894;0;0
0.55241;2.9541;0;0
0.5603;30039;0;0
0.56865;3.0686;0;0
0.57885;3.1234;0;0
0.58395;3.1633;0;0
0.58952;3.218;0;0
0.59647;3.2529;0;0
0.6025;3.3027;0;0
0.60807;3.3475;0;0
0.61364;3.3973;0;0
0.61874;3.4421;0;0
0.6257;3.4769;0;0
0.63358;3.5417;0;0
0.63961;3.5914;0;0
0.64471;3.6313;0;0
0.65074;3.696;0;0
0.65584;3.7507;0;0
0.66234;3.7955;0;0
0.66929;3.8453;0;0
0.67625;3.8852;0;0
0.68089;3.9399;0;0
0.68599;3.9748;0;0
0.69109;4.0295;0;0
0.69666;4.0843;0;0
0.70362;4.1639;0;0
0.70965;4.2037;0;0
0.71382;4.2585;0;0
0.71985;4.3033;0;0
0.72449;4.358;0;0
0.72866;4.4.078;0;0
0.73562;4.4626;0;0
0.74304;4.5273;0;0
0.74768;4.577;0;0
0.75417;4.6418;0;0
0.75742;4.6915;0;0
0.76391;4.7512;0;0
0.76763;4.7911;0;0
0.77226;4.8458;0;0
0.77737;4.9055;0;0
0.78432;4.9851;0;0
0.78942;5.0498;0;0
0.79128;5.0747;0;0
0.79592;5.1394;0;0
0.80334;5.1942;0;0
0.80751;5.2589;0;0
0.81262;5.3335;0;0
0.81725;5.3833;0;0
0.82468;5.4579;0;0
0.82839;5.5127;0;0
0.8321;5.5624;0;0
0.83627;5.6122;0;0
0.83998;5.647;0;0
0.84369;5.6918;0;0
0.8474;5.7465;0;0
0.85297;5.8162;0;0
0.85853;5.8759;0;0
0.86503;5.9556;0;0
0.8692;6.0202;0;0
0.87338;6.1048;0;0
0.87987;6.1745;0;0
0.88544;6.2541;0;0
0.89239;6.3138;0;0
0.89842;6.4382;0;0
0.90399;6.5377;0;0
0.91002;6.6074;0;0
0.91558;6.692;0;0
0.92022;6.7666;0;0
0.9244;6.8611;0;0
0.93089;6.9308;0;0
0.93599;7.0104;0;0
0.94156;7.1398;0;0
0.94573;7.1995;0;0
0.9513;7.2642;0;0
0.95872;7.4035;0;0
0.95918;7.3687;0;0
0.96429;7.4781;0;0
0.96753;7.508;0;0
0.97124;7.5826;0;0
0.97542;7.6672;0;0
0.97959;7.7318;0;0
0.9833;7.8015;0;0
0.98655;7.8761;0;0
0.98887;7.9507;0;0
0.99443;7.9856;0;0
0.99814;8.0552;0;0
1.00046;8.1199;0;0
1.00371;8.1697;0;0
1.00742;8.2144;0;0
1.0102;8.2791;0;0
1.01206;8.3288;0;0
1.01299;8.3836;0;0
------------------------------------------------///
alicealmd is offline   Reply With Quote

Old   October 17, 2022, 06:19
Default
  #2
New Member
 
Marcus Voigt
Join Date: Sep 2022
Posts: 2
Rep Power: 0
underEngineered is on a distinguished road
Hey,

as your error states keyword file undefined you are missing the keyword
file in your velocity BC. I never tried to read a .csv for my BC.
Are you sure you have to write fileName and not file?

Best regards
underEngineered is offline   Reply With Quote

Reply

Tags
boundary, cfd, openfoam, profile, velocity


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
Question about different kinds of Boundaries and Boundary Conditions granzer Main CFD Forum 17 April 12, 2022 17:27
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Problem with assigned inlet velocity profile as a boundary condition Ozgur_ FLUENT 5 August 25, 2015 04:58
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28


All times are GMT -4. The time now is 17:05.