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

[blockMesh] Setting temperature on a patch for laplacianFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2011, 00:49
Default Setting temperature on a patch for laplacianFoam
  #1
New Member
 
Bruce Hartley
Join Date: Jun 2011
Posts: 9
Rep Power: 15
Bruce Hartley is on a distinguished road
I just want to set a simple patch at a definable temperature in a simple model to use to solve with laplacianFoam. I have copied the tutorial example but it is too difficult to understand and the users instructions are insufficient for me to use. So, what do I need to put into blockMeshDict and in other places if required, in order to set some temperature boundary conditions on a very simple Laplace's equation solution?

Thanks
Bruce Hartley is offline   Reply With Quote

Old   June 16, 2011, 04:35
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
You just use blockMeshDict to define and name your patches. The boundary (and initial) conditions are set in the files in the 0/ directory. So if you want to set a fixed temperature on a certain patch, you add / edit that patch in 0/T:

Code:
patchName {
       type    fixedValue;
       value   uniform 500;
}
akidess is offline   Reply With Quote

Old   June 16, 2011, 05:25
Default But whaqt goes into the blockMeshDict file?
  #3
New Member
 
Bruce Hartley
Join Date: Jun 2011
Posts: 9
Rep Power: 15
Bruce Hartley is on a distinguished road
I can see that type of definition in the 0/T file but I can't make sense of what I need to put into the blockMeshDict.

Things like

patches
(
patch1 fixedValue
(
(0 1 10 9)
)
)

give errors
Bruce Hartley is offline   Reply With Quote

Old   June 16, 2011, 08:46
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
I'm not psychic, so "gives errors" won't help a lot in fixing your problem. Anyway the general way to define a patch is:

patch_type is either patch or empty in most cases, and patch name is whatever you want to call it (although fixedValue might not be the best idea because it clashes with an openfoam type, to avoid confusion better call it something like Dirichlet).

patches
(
patch_type patch_name
(
(four point indicies that make up a patch)
)
)
akidess is offline   Reply With Quote

Old   June 16, 2011, 21:58
Default Thanks
  #5
New Member
 
Bruce Hartley
Join Date: Jun 2011
Posts: 9
Rep Power: 15
Bruce Hartley is on a distinguished road
Akkides, Thanks, I have it now.

Bruce Hartley
Bruce Hartley is offline   Reply With Quote

Reply

Tags
constantvalue, laplacianfoam, patches, temperature


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
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 14:48
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 10:53
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28
[mesh manipulation] Using createPatch in place of couplePatches sripplinger OpenFOAM Meshing & Mesh Conversion 8 November 13, 2009 08:14


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