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

OF 1.6-ext setFields does not keep patch values

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 24, 2011, 10: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: 8
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 04:51.
Arnoldinho is offline   Reply With Quote

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

Old   May 8, 2012, 07:28
Default
  #3
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 8
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, 03:58
Default
  #4
Member
 
cosimo bianchini
Join Date: Mar 2009
Location: Florence, Tuscany, Italy
Posts: 88
Rep Power: 8
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, 18 views)
__________________
Cosimo Bianchini

Energy Engineering Department "S. Stecco"
University of Florence
Via di S.Marta, 3
50139 Florence - ITALY
Tel: +39 055 4796575
Fax: +39 055 4796342
Mob: +39 320 9460153
e-mail: cosimo.bianchini@htc.de.unifi.it
URL: www.htc.de.unifi.it
cosimobianchini is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using starToFoam clo OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 33 September 26, 2012 04:04
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
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


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