|
[Sponsors] |
"=" or "==" when I modify BC (fixedGradient) during run ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 14, 2010, 09:12 |
"=" or "==" when I modify BC (fixedGradient) during run ?
|
#1 |
Senior Member
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18 |
Hi!
I wonder what is the correct code form to modify the BC during runs. I know that for a fixedValue BC the "==" sign is required to overwrite the orginal BC. For example: Code:
phiS.boundaryField()[patchID]== phib.boundaryField()[patchID]; Code:
fixedGradientFvPatchScalarField& gradpPatch=refCast<fixedGradientFvPatchScalarField>(p.boundaryField()[patchID]); scalarField& gradpField = gradpPatch.gradient(); gradpField = fluxP; Best regards, Cyp |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fixedGradient BC type with the channelOodles solver | Bedotto | OpenFOAM Running, Solving & CFD | 5 | April 15, 2019 10:49 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
Cycling a transient run | Chetan Mistry | Phoenics | 0 | March 3, 2004 10:50 |