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

Setting Location dependent boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2017, 12:05
Post Setting Location dependent boundary condition
  #1
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
QuantumDart is on a distinguished road
Hello all,

I need to set location Dependant boundary condition.

In a simplified case:

flow through a square pipe is being simulated.

The lower wall of the square pipe is heated(T=400k) starting from 1/4th of the length from the beginning and before its adiabatic.

how do I realize this(or similar) boundary condition???

Thanks!
QuantumDart is offline   Reply With Quote

Old   August 2, 2017, 17:15
Default
  #2
Member
 
Sugajen
Join Date: Jan 2012
Location: Tempe, USA
Posts: 52
Rep Power: 14
Sugajen is on a distinguished road
Quick answer is to make two different patches for the adiabatic and T=400K. There maybe better ways as well.

best,
Sugajen
Sugajen is offline   Reply With Quote

Old   August 5, 2017, 04:21
Default
  #3
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
QuantumDart is on a distinguished road
I tried to do that. The problem is that I am not able to split the patches in starccm+ where i am doing my meshing.

If there is a way to do that would be good to know as well otherwise is there any way to do this independently in OpenFOAM as it would be the easiest for me.

Thanks
QuantumDart is offline   Reply With Quote

Old   August 5, 2017, 04:42
Default
  #4
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
I have not enough time to check for sure if this is what You are looking for but maybe You could check.
patch splitting for different boundary conditions
sheaker is offline   Reply With Quote

Old   August 5, 2017, 05:11
Default
  #5
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
QuantumDart is on a distinguished road
As i understand its only useful for people using blockMesh so i would not be able to do it as i export my mesh from starccm+ Thanks for your input tho
QuantumDart is offline   Reply With Quote

Old   August 5, 2017, 05:22
Default
  #6
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
Ok. When You convert Your mesh to openFoam format use two tools:
faceSet and boxToFace like in the example below:
Code:
echo "faceSet detachFacesIntake new boxToFace (-0.035 -0.01 0) (-0.015 0.01 0)" > detachFacesIntake.setSet
runApplication setSet -batch detachFacesIntake.setSet -latestTime
mv log.setSet log.setSetIntake
rm -f detachFacesIntake.setSet

echo "faceSet detachFacesExhaust new boxToFace (0.015 -0.01 0) (0.035 0.01 0)" > detachFacesExhaust.setSet
runApplication setSet -batch detachFacesExhaust.setSet -latestTime
mv log.setSet log.setSetExhaust
rm -f detachFacesExhaust.setSet

rm -f $meshDir/sets/*_old*
sheaker is offline   Reply With Quote

Old   August 5, 2017, 06:26
Default
  #7
New Member
 
Join Date: Jul 2017
Posts: 7
Rep Power: 8
QuantumDart is on a distinguished road
I don't get how do the tools work and how to implement them.
also upon googling i found that the faceSet tool has been discontinued. does the code remain the same ?


I am new to openFOAM so sorry for the dumb question. :P

ps:I am using ccm26Tofoam for the converting.
QuantumDart is offline   Reply With Quote

Old   August 5, 2017, 16:12
Default
  #8
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
I was using this script in sonicTurbDymEngineFoam for openFoam ext 1.6.
You need to create bash script with similar code and run it in terminal.

First line save faces with its centers inside the box of boxToFace to detachFacesIntake.setSet file with detachFacesIntake 'name'.
Code:
echo "faceSet detachFacesIntake new boxToFace (-0.035 -0.01 0) (-0.015 0.01 0)" > detachFacesIntake.setSet
Second line creates boundary named detachFacesIntake based on Your detachFacesIntake.setSet file.
Code:
runApplication setSet -batch detachFacesIntake.setSet -latestTime
I think that You should be able to use it in Your version of openFoam but I'm not 100% sure about setSet .
sheaker is offline   Reply With Quote

Reply

Tags
boundary conditions, openfoam 2.4.x


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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Boundary condition setting for non-premixed combustion using reactingFoam skyopener OpenFOAM 0 May 23, 2010 22:55


All times are GMT -4. The time now is 03:37.