|
[Sponsors] |
Applying a retarding shear in a row of cells for incompressible flows |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 20, 2023, 04:56 |
Applying a retarding shear in a row of cells for incompressible flows
|
#1 |
Member
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 48
Rep Power: 3 |
Hello community,
Can you please give me your opinion in this implementation of 'retarding shear stress' proposed by Richard & Hoxey (1993) in the row of cells adyacent to wall that helps to minimize the over production of TKE and so the peak of TKE when plotting against vertical profile: shear = rho * (u_friction)² I'm running simpleFoam, must I remove or keep rho (density) in the calculation of the source? By using topoSetDict we can catch the first row of cells adyacent to ground patch (wall): first patchToFace and then setToCellZone. Then, by using fvOptions codedVectorSource: PHP Code:
I've seen that some user multiplies the sources term by cell volumes, when is this needed? I apologize but I lost the original code and this code is what I remember that I could run. Any ideas are welcome Last edited by MMRC; November 20, 2023 at 06:13. |
|
November 22, 2023, 11:28 |
|
#2 |
Member
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 48
Rep Power: 3 |
Hello community,
Here is my code, in fact, it helped to lower the effect of over production of TKE codedSource { type vectorCodedSource; selectionMode cellSet; cellSet groundCellSet; fields (U); name retardingshear; codeInclude #{ #}; codeCorrect #{ #}; codeAddSup #{ vectorField& Usource = eqn.source(); const scalarField& V = mesh_.V(); vector dir(-1,0,0); // Apply the source forAll(V, i) { // cell volume specific source Usource[i] -= (0.1*V[i])*dir; }; #}; codeConstrain #{ #}; } The value I used was thinking that I should have input of it without density , because I'll be using density. The use of volume of the cell is something that I copy someone used for their sources on other fields, maybe this is not correct. Please share your comments, this supposed to be a 'retarding shear stress' applied to the cell adjacent to ground patch |
|
Tags |
fvoption, shear stress, sources |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculating source term total cell-zone volume parallel computation | RobV | Fluent UDF and Scheme Programming | 2 | May 30, 2022 04:46 |
[snappyHexMesh] snappyHexMesh does not detect highly skewed faces? | ptpacheco | OpenFOAM Meshing & Mesh Conversion | 1 | January 4, 2022 13:37 |
cellZone not taking all the cells inside | rahulksoni | OpenFOAM Running, Solving & CFD | 6 | January 25, 2019 01:11 |
cellZone not taking all the cells inside | rahulksoni | OpenFOAM | 0 | January 16, 2019 02:16 |
shear force applying | Danial1992 | FLUENT | 0 | May 23, 2017 04:19 |