topoSet - swakTopoSources - expressionToFace - problem regarding "variables"
Hello foamers,
I'd like to calculate the momentum flow through a special plane in my domain. This plane is formed by the faces of a special set of cells. At the moment I try to define a faceSet containing these faces. The following topoSetDict works well: Code:
libs ( Code:
libs ( Code:
Create polyMesh for time = 0 In the last days I tried to get this running - but with no success. Does anyone know about how to get rid of this error? What am I doing wrong? |
Quote:
BTW: for sources and output use the CODE-tag. Not QUOTE. |
Thanks a lot for this quick and valuable reply. Is this written down somewhere so that I could have avoided asking this stupid question?
This runs for now: Code:
theVariables Code:
--> FOAM FATAL ERROR: |
Quote:
Anyway: your way of selecting the faces (those within a small layer by selecting their face-value) is a bit unstable for several reasons. Expression to face works in two modes depending on the result of expression: if the result is a face-field (the "fpos()"-variant) then "true" means "take this face". If the result is a cell-field it is a bit different. Then a face is taken only if one cell is True and the other is False. So selecting a plane at halfHeight is simply "pos().x<halfHeight". This second way makes it easier to select a "closed" plane in any grid |
Quote:
Code:
theVariables Code:
meanMomentumFlux |
Quote:
|
Thank you very much for helping. I'll keep this in mind (actually I took notes).
|
All times are GMT -4. The time now is 00:59. |