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

OF 1.6-ext setFields does not keep patch values

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2011, 11:42
Default OF 1.6-ext setFields does not keep patch values
  #1
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18
Arnoldinho is on a distinguished road
I'm nut sure if this is a bug or a normal procedure: Using setFields with OF 1.6-ext doesn't keep the original defined values at the boundary patches. This is not the case in 1.7.x, which I have used before.

An example: In U.org I set fixedValue uniform (0 0 0) for patch walls. The internal fields of part of the mesh are then set to (0.15 0 0) using setFields (regions, boxToCell). In the updated U file, values for patch walls are then also set to (0.15 0 0), which is wrong, as it serves as a boundary condition for the whole simulation.

Is there something like keetPatches in funkySetFields?

Arne

Last edited by Arnoldinho; June 25, 2011 at 05:51.
Arnoldinho is offline   Reply With Quote

Old   May 2, 2012, 14:06
Default
  #2
New Member
 
Join Date: Jan 2010
Posts: 23
Rep Power: 16
jdiorio is on a distinguished road
Same issue - any resolution on this?
jdiorio is offline   Reply With Quote

Old   May 8, 2012, 08:28
Default
  #3
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18
Arnoldinho is on a distinguished road
Sorry no, at least not from my side.
I'm avoiding this by first setting the specific patch values to zeroGradient, and after setFields, giving back fixedValues. But this is just an ugly workaround.
Arnoldinho is offline   Reply With Quote

Old   May 9, 2012, 04:58
Default
  #4
Member
 
cosimo bianchini
Join Date: Mar 2009
Location: Florence, Tuscany, Italy
Posts: 88
Rep Power: 17
cosimobianchini is on a distinguished road
Send a message via Skype™ to cosimobianchini
Here is another "ugly" workaround: simply avoid the loop on the faces.
I wrote an utility called setFieldsPreservePatch baset on setFields from 1.6-ext where I just removed lines from 86 to 91.
You find it in the attachement, please let me know if you encounter any problem.
Attached Files
File Type: zip setFieldsPreservePatches.zip (3.4 KB, 33 views)
__________________
Cosimo Bianchini

Ergon Research s.r.l.
Via Panciatichi, 92
50127 Florence - ITALY
Tel: +39 055 0763716
Mob: +39 320 9460153
e-mail: cosimo.bianchini@ergonresearch.it
URL: www.ergonresearch.it
cosimobianchini 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
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 11:49.