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

cellSet - Divide Patch Wall in Pipe for implementation different BCs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2012, 12:20
Red face cellSet - Divide Patch Wall in Pipe for implementation different BCs
  #1
New Member
 
Join Date: Feb 2012
Posts: 11
Rep Power: 14
franzi_ is on a distinguished road
Hey,

I am using the forum since quite a long time now and always found really helpful posts, but to this topic I couldn't find what I was looking for.

I want to simulate the flow through a pipe with a constant wall tempreture on the outer wall. But in fact only part of the wall has a constant wall temperatur. On the pipe the first 40mm are adiabatic, than 60mm konst temp., again 40mm adabaitc and so on. (16 times)
- I hope I explained it understandable.

I tried to use createPatch und cellSetDict ( // Cells with centre within cylinder: cylinderToCell)to form that shape but it didn't work.

For the mesh I use Salome, but in fact it is overcharged with that mesh.

Does anyone have a hint what else I could try for this problem? Is there any other utility I still havn't found?

I really hope that somebody has a good idea.

Thanks a lot in advance
cheers, Franzi


PS: I am using OF 1.7.
franzi_ is offline   Reply With Quote

Old   May 13, 2012, 08:18
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
ur answer is "groovyBC", you dont need to divide your patch you can apply your non uniform boundary condition with groovyBC

you can download it from here: "http://openfoamwiki.net/index.php/Contrib_groovyBC "
nimasam is offline   Reply With Quote

Old   May 13, 2012, 09:54
Default
  #3
New Member
 
Join Date: Feb 2012
Posts: 11
Rep Power: 14
franzi_ is on a distinguished road
Hi,

Thanks a lot for the fast answer!!!


I already usw groovyBC for the BC Temperature on the wall like this:
aussen
{
type groovyBC;
variables "h=109.0;Tinf=494.0;rho=777.0;cp=2200.0;k=kappaEff *cp*rho;";
valueExpression "Tinf";
fractionExpression "1.0/(1.0+k/(mag(delta())*h))";
}

But I don't see any way to put in a condition. I want that half of the tube has the groovyBC condition as defined above und is other half zeroGradient for an adiabatic wall. Can I set something like -condition "pos().z>0.4 && pos().z<0.6" for the wall in groovyBC?

What about swak4Foam? I saw it in the forum and wonder if I can use that to make zeroGradient for different positions on the wall. But that only sets initial values, right ? no BCs that stays constant while simulating?

Oh, I am really confused at the moment...

Thanks in advance for helping!

Cheers Franzi
franzi_ is offline   Reply With Quote

Old   May 13, 2012, 11:04
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
somethings like this:
Code:
valueExpression "pos().z > L ? 0 : T";
gradientExpression "pos().z > L ? q : 0";
nimasam is offline   Reply With Quote

Reply

Tags
boundary condition, cellsetdict, constant wall temperature, createpatch


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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
[blockMesh] StitchMesh on two patches anita OpenFOAM Meshing & Mesh Conversion 31 April 4, 2013 12:51
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 22:31


All times are GMT -4. The time now is 00:31.