|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
sunil
Join Date: Jan 2010
Posts: 8
Rep Power: 5 ![]() |
hi .
what is the syntax of calculated type of primitive boundary field.my case has three coupled equation with 3 variables. i have a relation between two variables (fields) at a particular patch , say x=constant *y. so how to give boundary condition for x and y at that patch. please help me. Last edited by suniljain; March 10, 2010 at 03:37. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 8 ![]() |
If I understand your question, you have 2 equations coupled via a fixedValue boundary condition. Something like this should work for your boundary condition (although I'd be interested to know if there's a better way):
Code:
label wall2 = mesh.boundaryMesh().findPatchID("boundaryWall2");
fixedValueFvPatchScalarField& bufferT = refCast<fixedValueFvPatchScalarField>(T.boundaryField()[wall2]);
scalarField& valT = bufferT;
forAll (valT, faceI)
{
valT[faceI] = c.boundaryField()[wall2][faceI];
}
For a gradient boundary condition, it's similar (described here: help with basic coupled system) |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with cyclic boundaries in Openfoam 1.5 | fs82 | OpenFOAM | 28 | April 23, 2013 08:35 |
| Using starToFoam | clo | OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... | 33 | September 26, 2012 04:04 |
| Wind turbine simulation | Saturn | CFX | 23 | April 16, 2011 07:34 |
| pipe flow with heat transfer | Fabian | OpenFOAM | 2 | December 12, 2009 04:53 |
| transient simulation of a rotating rectangle | icesniffer | CFX | 1 | August 8, 2009 07:25 |