|
[Sponsors] |
Setting Location dependent boundary condition |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Join Date: Jul 2017
Posts: 7
Rep Power: 9 ![]() |
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! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Sugajen
Join Date: Jan 2012
Location: Tempe, USA
Posts: 52
Rep Power: 14 ![]() |
Quick answer is to make two different patches for the adiabatic and T=400K. There maybe better ways as well.
best, Sugajen |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Jul 2017
Posts: 7
Rep Power: 9 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Join Date: Jul 2017
Posts: 7
Rep Power: 9 ![]() |
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
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10 ![]() |
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* |
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
Join Date: Jul 2017
Posts: 7
Rep Power: 9 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10 ![]() |
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 Code:
runApplication setSet -batch detachFacesIntake.setSet -latestTime |
|
![]() |
![]() |
![]() |
Tags |
boundary conditions, openfoam 2.4.x |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 05:45 |
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 |