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

Which patch type for domain inlet? wall?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 30, 2011, 20:21
Default Which patch type for domain inlet? wall?
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
Hello,

I want optimize hydrofoils using a "watertunnel" domain.

The domain has a symmetry mirror plane so only one wing gets calculated.

The case setup is based on the motorBike case. The turbulence model is kOmegaSST, suitable for lowRe (the hydrofoils operate in a Re range between 300.000 and 2.000.000).

Running simpleFoam leads to the following error:

...
[2] --> FOAM FATAL ERROR:
[2] Invalid wall function specification
Patch type for patch minX_inlet must be wall
Current patch type is patch

...

Find attached the log file.

Is the domain inlet really a patch of type wall?

Find attached the related files (boundary...).

Klaus
Attached Files
File Type: txt log.simpleFoam.txt (18.7 KB, 4 views)
File Type: txt blockMeshDict.txt (1.6 KB, 4 views)
File Type: txt boundary.txt (1.7 KB, 3 views)
File Type: gz 0.org.tar.gz (1.3 KB, 1 views)
klausb is offline   Reply With Quote

Old   February 1, 2023, 00:55
Default
  #2
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Hi,

Just wondering if anyone has figured out to fixed the bug on '' how to set nutwallfunction when blockmesh had already define an inlet as a patch

In my case I need to set an inlet velocity to domain so setting the inlet patch to wall is not an option.

I am using OF7, any help is much appreciated.

Thanks
dasith0001 is offline   Reply With Quote

Old   February 1, 2023, 04:19
Default
  #3
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
Hello,

You are not supposed to use a wall function on a inlet since wall functions are meant to be used on... walls.
On the inlet, nut should be set at calculated.

Regards,
Yann
dasith0001 likes this.
Yann is offline   Reply With Quote

Old   February 1, 2023, 19:54
Default
  #4
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,

You are not supposed to use a wall function on a inlet since wall functions are meant to be used on... walls.
On the inlet, nut should be set at calculated.

Regards,
Yann
Hi Yann,

Thank you for the reply. I am aware of that, and I was trying to assign 'calculated' BC to Inlet and Outlet (minX ans maxX in my case set-up) defined as patch in blockMesh.

But I am getting an error of ''Attempt to cast type calculated to type nutWallFunction at index 0'' when I am trying to do so.

I am trying this simplest chtMultiRegionFoam case with kOmegaSST turbulent model. OF version is v2012 and the case is running on windows with Ubuntu 20.04.

Perhaps something wrong with 'omega' BC definitions, but I tried all the combinations I could think of. The only time I got my case running is when I set inlet and outlet to ''type wall'' in blockMesh.

For consideration, I am attaching my all the case files, It is very much appreciated if you could shred some light.

Thank you
Dasith
Attached Files
File Type: zip kOmegaSST.zip (24.5 KB, 1 views)
dasith0001 is offline   Reply With Quote

Old   February 2, 2023, 04:40
Default
  #5
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
Quote:
Originally Posted by dasith0001 View Post
Thank you for the reply. I am aware of that, and I was trying to assign 'calculated' BC to Inlet and Outlet (minX ans maxX in my case set-up) defined as patch in blockMesh.

But I am getting an error of ''Attempt to cast type calculated to type nutWallFunction at index 0'' when I am trying to do so.
Then this means there is another error somewhere and you have to find it.

I had a look at your files, and you get this error because you still have wall functions applied on minX and maxX on omega. Replace it with fixedValue or inletOutlet as you did on k and it should be fine.

Regards,
Yann
Yann is offline   Reply With Quote

Old   February 2, 2023, 21:34
Default
  #6
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 118
Rep Power: 5
dasith0001 is on a distinguished road
Hi Yann,

Its up and running now!!!

Thank you very much . If anyone else is interested, I just attached the running case files.

Cheers,
Dasith
Attached Files
File Type: zip V02.zip (23.8 KB, 3 views)
dasith0001 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
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 13:23
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 18:51
rhoSimpleFoam claco OpenFOAM 7 April 20, 2010 05:32
Flow Around a Cylinder ronaldo OpenFOAM 5 September 18, 2009 09:13
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


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