|
[Sponsors] |
how can i modify boundaryPatch value at runtime |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 28, 2010, 10:16 |
how can i modify boundaryPatch value at runtime
|
#1 |
New Member
Yu-ching Hish
Join Date: Apr 2010
Posts: 4
Rep Power: 16 |
i study icoFoam source code.
i want to modify U boundaryPatch value. i set fixed value at inlet patch. inlet { type fixedValue; value uniform (0 1 0); } then i modify the source code. /*** source code ****/ label patchID = mesh.boundaryMesh().findPatchID("inlet"); U.boundaryField()[patchID] = U.boundaryField()[patchID]*2; runTime.write(); /************************/ but it does not work. the boundaryPatch value still is uniform(0 1 0); please help me to solve the problem. thanks. |
|
October 28, 2010, 10:45 |
|
#2 |
Senior Member
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17 |
Hi,
can you try == instead of =? Best Kathrin |
|
October 28, 2010, 22:10 |
|
#3 |
New Member
Yu-ching Hish
Join Date: Apr 2010
Posts: 4
Rep Power: 16 |
thanks a lot ! Kathrin
it work. thanks for your help! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
runTime | deji | OpenFOAM | 2 | January 17, 2019 10:14 |
[Other] Modify mesh runtime | Daniele111 | OpenFOAM Meshing & Mesh Conversion | 8 | December 19, 2010 16:43 |
Modify my mesh runtime | Daniele111 | OpenFOAM Running, Solving & CFD | 0 | October 9, 2010 08:23 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
fortran runtime error while calculating | Anna (aka new-user) | Siemens | 2 | December 2, 2004 12:35 |