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

[swak4Foam] funkySetBoundaryField "create" entry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2016, 05:25
Default funkySetBoundaryField "create" entry
  #1
Member
 
Timm Severin
Join Date: Mar 2014
Location: Munich
Posts: 63
Rep Power: 12
Astrodan is on a distinguished road
Servus everyone,

for whoever might use it, I recently needed to apply the funkySetBoundaryField utility from swak4Foam to a nonexistent field, which does not work.

You could just copy an arbitrary existing field, but that would not be very dynamic. So attached you find a patch for the funkSetBoundaryField.C located in swak4Foam/Utilities/funkySetBoundaryField which takes care of creating a new field if the "create" keyword is set in the corresponding dictionary (similar to the funkySetField keyword, however performance is probably not that good, since I just write a new temporary, empty field before reading it again).

So far,
-Timm

Edit: Updated the patch, now it also accepts the entry type scalar or type vector as an expression to either create a volScalarField or a volVectorField.
Attached Files
File Type: patch funkySetBoundaryField.patch (2.8 KB, 33 views)

Last edited by Astrodan; March 31, 2016 at 08:08.
Astrodan is offline   Reply With Quote

Reply

Tags
funkysetboundaryfield, swak4foam


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
create the file *.foam phongstar OpenFOAM 12 October 14, 2018 18:06
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[gmsh] How to create a 3D volume mesh using a existing surface mesh?! RobertHB Mesh Generation & Pre-Processing 0 July 20, 2017 08:12
Problem in3D model processing mebinitap OpenFOAM 2 December 12, 2014 04:40
[ICEM] how to create a 2d tri mesh with quad mesh in the boundary layer seal2013 ANSYS Meshing & Geometry 3 October 6, 2013 16:09


All times are GMT -4. The time now is 05:36.