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

Boundary Conditions in OpenFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2022, 10:03
Default Boundary Conditions in OpenFOAM
  #1
New Member
 
Paul
Join Date: Mar 2022
Posts: 2
Rep Power: 0
Paul.E is on a distinguished road
Good morning,
I'm new in this forum. I would use OpenFOAM in my thesis. I have to do a simulation about an incompressible fluid through a duct.
The outlet pressure should fall fron an intitial value to the atmospheric pressure. Therefore, I want to use a csv File where I've written all the pressure values during the simulation.I've had some problems, the simulation doesn't run, so, I'm looking for an advice.

I show the initial condition written in the 0 folder.

Regards


outlet
{
type fixedProfile;
profile tableFile;
profileCoeffs

{
nHeaderLine 1;
refColumn 1;
componentColumns 2 (0 1);
separator " ";
mergeSeparators no;
file "0/data.csv";
interpolationScheme linear;
}
}

data.csv is like this:

0.0000 5000000
0.0001 4995100
0.0002 4990200
0.0003 4985300
. .
. .
0.1000 100000


--> FOAM FATAL IO ERROR:
incorrect first token, expected <int> or '(', found on line 1 the doubleScalar 0

file: 0/data.csv at line 1.
Paul.E is offline   Reply With Quote

Old   March 29, 2022, 04:42
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 727
Rep Power: 13
piu58 is on a distinguished road
A table file hast to look like this

Code:
(       
   ( 0.0000 5000000 )
   ( 0.0001 4995100 )
   ( 0.0002 4990200 )
   ( 0.0003 4985300 )
);
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   March 31, 2022, 06:04
Default
  #3
New Member
 
Paul
Join Date: Mar 2022
Posts: 2
Rep Power: 0
Paul.E is on a distinguished road
Thanks, with the parenthesis in the data file, the simulation runs correctly.
Paul.E is offline   Reply With Quote

Reply

Tags
boundary condition, incompressible fluid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 17, 2020 00:44
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 11:00
Velocity vector in impeller passage ngoc_tran_bao CFX 24 May 3, 2016 22:16
Problem with SIMPLEC-like finite volume channel flow boundary conditions ghobold Main CFD Forum 3 June 15, 2015 12:14


All times are GMT -4. The time now is 04:28.