|
[Sponsors] |
How to modify gradient specification for fixedGradient b.c. during simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 6, 2017, 12:48 |
How to modify gradient specification for fixedGradient b.c. during simulation
|
#1 |
New Member
Join Date: Aug 2016
Posts: 19
Rep Power: 10 |
I want to modify boundary conditions during a simulation from inside a custom solver (derived from pimpleFoam) without creating my own custom boundary condition type.
So far I have been successful for fixedValue boundary conditions. I managed this by using, for example Code:
type fixedValue; value uniform (0 0 0); Code:
int index = 0; forAll( U.boundaryFieldRef()[boundary_label(patchName)], i ) { for ( int j = 0; j < 3; j++ ) { U.boundaryFieldRef()[boundary_label(patchName)][i][j] = velocityBC[index]; index++; } } |
|
June 30, 2020, 08:57 |
|
#2 | |
Member
Rohit George Sebastian
Join Date: May 2017
Posts: 42
Rep Power: 9 |
Quote:
Hi, Did you manage to figure out how to do this? I am trying to do something similar. Thanks! |
||
Tags |
boundaries condition, boundary variable, time vayring bc |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition setting regarding turbine simulation using CFX | Lacerlacer | CFX | 11 | March 12, 2012 10:32 |
Setting of gradient type B.C. in Phoenics | black_spider | Phoenics | 2 | May 4, 2011 08:16 |
Question) fan simulation & B.C | Serazio | FLUENT | 0 | February 7, 2011 14:27 |
Pressure gradient in particle simulation | Mikka | Main CFD Forum | 0 | August 5, 2007 22:55 |
Pressure gradient in particle simulation | Mikka | Main CFD Forum | 0 | June 30, 2007 23:16 |