|
[Sponsors] | |||||
[swak4Foam] funkySetBoundaryField "create" entry |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Timm Severin
Join Date: Mar 2014
Location: Munich
Posts: 63
Rep Power: 13 ![]() |
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. Last edited by Astrodan; March 31, 2016 at 09:08. |
|
|
|
|
|
![]() |
| Tags |
| funkysetboundaryfield, swak4foam |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| create the file *.foam | phongstar | OpenFOAM | 12 | October 14, 2018 19:06 |
| OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
| [gmsh] How to create a 3D volume mesh using a existing surface mesh?! | RobertHB | Mesh Generation & Pre-Processing | 0 | July 20, 2017 09:12 |
| Problem in3D model processing | mebinitap | OpenFOAM | 2 | December 12, 2014 05:40 |
| [ICEM] how to create a 2d tri mesh with quad mesh in the boundary layer | seal2013 | ANSYS Meshing & Geometry | 3 | October 6, 2013 17:09 |