|
[Sponsors] | |||||
codedFixedValue boundary condition and macro expansion |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Boris Tomić
Join Date: May 2014
Posts: 1
Rep Power: 0 ![]() |
Hi
Example: ./0/include/initialConditions file: Code:
... wa 38;//wind angle flowVelocity (1 0 0); ... Code:
...
#include "include/initialConditions"
...
internalField uniform $flowVelocity;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
...
inlet
{
type codedFixedValue;
value $internalField;
name wWind;
code
#{
const fvPatch& boundaryPatch = this->patch();
const vectorField& Cf = boundaryPatch.Cf();
vectorField result(Cf.size(), Zero);
scalar trueangle = $wa;
...
#};
}
}
Is there some other way how to fetch $wa value in code section of codedFixedValue boundary condition? Last edited by kodmasin; January 9, 2023 at 16:21. |
|
|
|
|
|
![]() |
| Tags |
| boundary, codedfixedvalue, macro expansion |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convection and heat flux boundary condition | ymd | FLUENT | 17 | August 21, 2023 05:18 |
| auto set variety initial condition by using java macro | MikeWang | STAR-CCM+ | 1 | April 9, 2019 04:41 |
| Boundary condition temperature interpolation along a curve | Rodolf_G | Fluent UDF and Scheme Programming | 7 | June 18, 2018 19:08 |
| Constant contact angle boundary condition | sdeb31 | FLUENT | 0 | January 12, 2018 13:13 |
| macro to get Boundary condition | Seb | FLUENT | 1 | November 7, 2003 13:26 |