|
[Sponsors] |
How to override boundary condition type to zeroGradient |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 30, 2022, 18:08 |
How to override boundary condition type to zeroGradient
|
#1 | |
Senior Member
Join Date: Jun 2016
Posts: 102
Rep Power: 10 |
Hello all,
I need to override the following boundary condition to "zeroGradient": Code:
sidewall { type calculated; value nonuniform List<scalar> 1914 (l�(��K���MTOd8���o?����>��^QɐѠ>�A�*Gļ��^]q�ˇ��(�Z�m���p�^?��㳾p�^^|A���PR�9���$ .... 1. Manually edit the file. It works, but I want to do it automatically. 2. Use setExprBoundaryFields utility Code:
pattern { field N1; expressions ( { patch sidewall; target type; expression zeroGradient; } ); keepPatches true; } Code:
Processing field N1 --> FOAM FATAL IO ERROR: (openfoam-2112) Wrong token type - expected string, found on line 25: word 'zeroGradient' file: system/setExprBoundaryFieldsDict.pattern.expressions.expression at line 26. From Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::string&) in file primitives/strings/string/stringIO.C at line 53. FOAM exiting Code:
Stress { field N1; expressions ( { patchName sidewall; target type; expression zeroGradient; } ); } Code:
Part: Stress working on field N1 --> FOAM FATAL IO ERROR: (openfoam-2112) Wrong token type - expected string, found on line 25: word 'zeroGradient' file: system/funkySetBoundaryDict.Stress.expressions.expression at line 25. From Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::string&) in file primitives/strings/string/stringIO.C at line 53. FOAM exiting Quote:
Many thanks. |
||
October 3, 2022, 04:51 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hi,
It sounds like a job for changeDictionary: https://www.openfoam.com/documentati...ictionary.html Cheers, Yann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 07:20 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
[swak4Foam] Air Conditioned room groovyBC | Sebaj | OpenFOAM Community Contributions | 7 | October 31, 2012 15:16 |
Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 18:08 |