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

parabolic velocity boundary condition

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

Like Tree1Likes
  • 1 Post By nazmulislam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2023, 09:08
Default parabolic velocity boundary condition
  #1
Member
 
Nazmul Islam
Join Date: Feb 2023
Posts: 32
Rep Power: 3
nazmulislam is on a distinguished road
Hi,

I am trying to implement parabolic velocity boundary condition at the inlet and writing the corresponding codes in the 'u' file within '0' folder as in the attachment.

However, when I run the simulation with icoFoam, I am getting the error message as in the attachment.

I appreciate your help in this regard.


Cheers,
Nazmul
Attached Images
File Type: png codedFixedValue.png (63.2 KB, 16 views)
File Type: png error.png (29.0 KB, 8 views)
nazmulislam is offline   Reply With Quote

Old   April 29, 2023, 05:11
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 667
Rep Power: 14
Tobermory will become famous soon enough
I know that the error messages can sometimes feel a little daunting to read, but do try - it literally tells you what the problem is in the first line. You are missing the "name" keyword from your boundary definition (see e.g. https://cpp.openfoam.org/v8/classFoa...d.html#details). Just add something like:

Code:
name    parabolicCodedInlet;
after the type and value keyword lines, and it should work.
Tobermory is offline   Reply With Quote

Old   April 29, 2023, 09:37
Default
  #3
Member
 
Nazmul Islam
Join Date: Feb 2023
Posts: 32
Rep Power: 3
nazmulislam is on a distinguished road
Hi Tobermory,


Thanks for your suggestion. However, I have tried as you suggested, but got a different error message as in the attachment.


Cheers,
Nazmul
Attached Images
File Type: jpg error.jpg (105.6 KB, 3 views)
nazmulislam is offline   Reply With Quote

Old   May 1, 2023, 06:02
Default
  #4
Member
 
Nazmul Islam
Join Date: Feb 2023
Posts: 32
Rep Power: 3
nazmulislam is on a distinguished road
Quote:
Originally Posted by Tobermory View Post
I know that the error messages can sometimes feel a little daunting to read, but do try - it literally tells you what the problem is in the first line. You are missing the "name" keyword from your boundary definition (see e.g. https://cpp.openfoam.org/v8/classFoa...d.html#details). Just add something like:

Code:
name    parabolicCodedInlet;
after the type and value keyword lines, and it should work.



Hello,


I have solved the problem. There was a typo in the code. I was written "Patch", but it should have written "patch".


Now it works. Thanks for your suggestion.


Cheers,
Nazmul
Tobermory likes this.
nazmulislam 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
Import .csv - velocity profile - error eSKa CFX 9 April 3, 2021 13:38
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Complex velocity boundary condition Pavithra OpenFOAM Running, Solving & CFD 0 October 2, 2019 00:17
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20


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