|
[Sponsors] |
January 31, 2019, 12:29 |
simpleFoam (RANS) - pitzDaily - mapped BC
|
#1 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Quote:
I have doubts related to mapped BC and maybe you can help me. I have attached an image (Fig.1) of my domain and below are the settings that I used in OpenFOAM so that it was possible to use such a BC. *I left the grid so you can see the dimensions of my domain. Code:
blockMeshDict: inlet { type mappedPatch; offset (0 0.1 0); EDIT 1: The ERROR is here. sampleRegion region0; sampleMode nearestCell; samplePatch none; faces ( (0 1 14 13) (1 2 15 14) ); } 0/U: internalField uniform (0 0 0); inlet { type mapped; field U; setAverage 1; average (3.45 0 0); interpolationScheme cell; value uniform (3.45 0 0); } 0/k: internalField uniform 0.04; inlet { type fixedValue; value uniform 0.04; } My intention was that with this BC being able to develop the velocity profile at the inlet. I put the mapping point above the step, Is it interesting to use this point so close to the entrance? Unfortunately I was trying to import a velocity profile that I developed into a channel, but it was not succeeding and so I resorted to this option. Can you suggest something beyond this BC? Unfortunately the mapFields function, as far as I understand, can not import only the U profile from a channel to my inlet backward facing step. Two other issues are: Would it be interesting to use directMapped? From the moment I decided to use this BC, when should I add the mapped condition to my files (k, epsilon ...)? Because I'm just adding in U. Thanks. [Moderator note: Moved from simple open channel flow, the inlet and outlet are periodic ] Last edited by wyldckat; February 3, 2019 at 17:13. Reason: see "Moderator note:" |
||
January 31, 2019, 14:02 |
simpleFoam (RANS) - pitzDaily - mapped BC
|
#2 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Hi,
Below I've attached two images of two cases I'm working on. One of the images contains the velocity profile for the channel (v2f-newtoniano) and the other one is a backward facing step (pitzDailyMapped) also using the same model (v2f Model). Both cases have the same BC and both are set to a Re_tau = 395. The channel domain is cyclic, different from that used in the backward facing step geometry. In backward facing facing geometry was used to mapped BC, according to the code below. Code:
blockMeshDict: inlet { type mappedPatch; offset (-0.05 0 0); sampleRegion region0; sampleMode nearestCell; samplePatch none; faces ( (0 1 14 13) (1 2 15 14) ); } 0/U: internalField uniform (0 0 0); inlet { type mapped; field U; setAverage true; average (3.45 0 0); interpolationScheme cell; value uniform (3.45 0 0); } 0/k: internalField uniform 0.04; inlet { type mapped; field k; setAverage false; average 0.04; interpolationScheme cell; value uniform 0.04; } 0/epsilon: internalField uniform 0.4; inlet { type mapped; field epsilon; setAverage false; average 0.4; interpolationScheme cell; value uniform 0.4; } 0/v2: internalField uniform 0.024; inlet { type mapped; field v2; setAverage false; average 0.024; interpolationScheme cell; value uniform 0.024; } *Remembering again that the same BCs are being used on the wall for both cases. NOTE: I used the mapped BC for the first time, and the intention was to develop the velocity profile at the inlet geometry (backward facing step), since I am not able to import the channel velocity profile (Could someone advise me here?). Would it be interesting to use BC directMapped? Are the conditions I used for k, epsilon, and v2 correct? Thanks |
|
February 2, 2019, 14:05 |
|
#3 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answers:
Quote:
Having the two patches overlap would be a problem. I only have the vague idea that it requires strict mapping... Quote:
You could also have two meshes within the same case, and having the mapping be done from one mesh to the other one on the patch you have right now... If blockMesh doesn't let you generate the two independent blocks, then you can simply merge the meshes of two cases into a single one, without stitching.
__________________
|
|||
February 2, 2019, 15:04 |
|
#4 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Quote:
Incidentally, I even generated a new topic in the forum... if you want to give an opinion, I would be very grateful. LINK. |
||
February 3, 2019, 17:32 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Now I'm just confused... if you have a backward step case, you cannot map the velocity field within the same mesh, because the channel widens and therefore changes the profile velocity... it's pretty much a physical reality, therefore it's borderline impossible for that to ever converge...
I've now remember of something that has been released with OpenFOAM 6 and is documented in the respective commit: https://github.com/OpenFOAM/OpenFOAM...a0d9e72d5a7968 Unfortunately I don't have the time needed to work out an example case for this boundary condition But the tutorial case "incompressible/simpleFoam/pitzDailyExptInlet" can be used as a basis for creating such a case.
__________________
|
|
Tags |
mapped boundary condition, v2f boundary conditions |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
interFoam vs. simpleFoam channel flow comparison | DanM | OpenFOAM Running, Solving & CFD | 12 | January 31, 2020 16:26 |
simpleFOAM (RANS) - internal pipe flow - 'k' | gu1 | OpenFOAM Running, Solving & CFD | 1 | May 15, 2018 08:17 |
PitzDaily example and simpleFoam | csomerlot | OpenFOAM Running, Solving & CFD | 2 | November 6, 2013 12:20 |
simpleFoam 2d Case RANS Issues | mosquera | OpenFOAM Running, Solving & CFD | 0 | July 1, 2013 08:23 |
the result of pitzDaily using simpleFoam and pisoFoam | Kr_kim | OpenFOAM Running, Solving & CFD | 1 | March 16, 2010 14:38 |