CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Linux commands to define boundary conditions at velocity-inlet & wall boundaries

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

Like Tree1Likes
  • 1 Post By Hershey

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2013, 11:38
Default Linux commands to define boundary conditions at velocity-inlet & wall boundaries
  #1
New Member
 
Samuel
Join Date: Nov 2012
Location: Malaysia
Posts: 4
Rep Power: 13
saayo3 is on a distinguished road
Good day, everyone,

I am using a concatenated udf to define (i). flow profiles at velocity-inlet boundary named 'inlet, & (ii). profile for Roughness Constant, Cs, on the floor boundary named 'wall-floor' of a domain.

The program is to be sent from my windows PC to a remote Linux system.

I have written the following journal file to compile & load the udf, and define & initialize conditions at the velocity-inlet & wall boundaries:

file/read-case fluent.cas
define/user-defined/compiled-functions compile
"libudf"
yes
"inlet.c" "" ""
define/user-defined/compiled-functions load
"libudf"
define/boundary-conditions/velocity-inlet inlet no no yes yes yes yes "udf" "inlet_x_velocity::libudf" no 0 yes yes yes "udf" "k_profile::libudf" yes yes "udf" "dissip_profile::libudf"
define/boundary-conditions/wall wall-floor no no no 0.211 yes yes "udf" "Cs::libudf"
solve/initialize/compute-defaults/velocity-inlet/inlet
solve/initialize/compute-defaults/wall/wall-floor
solve/init/initialize-flow
solve/iterate 5000
file/binary-files n
file/confirm-overwrite n
file/write-data fluent.dat
exit
y

But I continued to get the following error message each time I tried to run the program:

"Warning: An error or interrupt occurred while reading the journal file. Some commands may not have been completed.

> Halting due to end of file on input".

Please, could someone, kindly, help me point out the error(s) and edit the journal file as appropriate.

Thanks so much, in anticipation of the kind gesture.


Samuel
saayo3 is offline   Reply With Quote

Old   June 29, 2013, 12:33
Default
  #2
Member
 
Christopher Hershey
Join Date: Feb 2012
Location: East Lansing, Michigan
Posts: 41
Rep Power: 14
Hershey is on a distinguished road
I would suggest stepping through your journal file manually and seeing if the commands you are issuing in the journal file are exactly as FLUENT is asking for.

I usually encounter a problem like this when my journal file doesn't anticipate an extra "yes" or "no" input and thus my journal file keeps running until the end without giving proper instructions to FLUENT.

Your journal file is not long at all, so just start FLUENT and type in each line one at a time. If there are any discrepancies, then correct them.

My guess is that the confirm overwrite command is giving you issues if there is no file that needs to be overwritten.
jzc likes this.
Hershey is offline   Reply With Quote

Reply

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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
Problem with assigned inlet velocity profile as a boundary condition Ozgur_ FLUENT 5 August 25, 2015 04:58
ribbed channel / simpleFoam / boundary conditions beeo OpenFOAM Pre-Processing 20 July 17, 2013 08:39


All times are GMT -4. The time now is 13:48.