|
[Sponsors] |
[swak4Foam] groovyBC- nonuniform scalar mapping |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 3, 2017, 06:40 |
groovyBC- nonuniform scalar mapping
|
#1 |
Member
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11 |
Hi,
Is it possible to set groovyBC to map a non-uniform scalar list between two region of a multi-region case if both the regions have the same grid resolution? in the fluid region interfacePatch { The solver computes the solid region value first, and then uses the groovyBC to compute the interfacePatch for the fluid region. However, using the current set-up, it only stores 1 value from the solidregion-interfacePatch as a uniform scalar in the fluidregion-interfacePatch. I hope I have made this clear enough I can explain more if needed. |
|
May 8, 2017, 10:45 |
|
#2 |
Member
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11 |
I found a post by gschaider that only uniform values can be supplied. Has any development taken place on this after that ? The post is quite old !
The problem is when mapping a multi-region species transfer using groovyBC, mass conservation does not hold since influx of species assumes average patch value at the interface, instead of exact face values. |
|
July 29, 2017, 07:47 |
|
#3 |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
could u solve ur problem?
|
|
July 29, 2017, 18:42 |
|
#4 |
Member
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11 |
Hi Alejandro,
I would suggest you try a different approach, maybe a mapped boundary condition. I created a similar one for my case since doing non-uniform lists was not possible for me. To the best of my knowledge, I do not think it can be done either. Best Regards. EDIT: Its exactly the problem I said, I tried setting up non-uniform but groovyBC setup up the values such that, it calculates max, min and avg. And then sets the value at each patch as the average value, if your case contains highly non-uniform points, it will most certainly result in erroneous solution. |
|
July 29, 2017, 19:10 |
|
#5 | |
Senior Member
Alejandro
Join Date: Jan 2014
Location: Argentina
Posts: 128
Rep Power: 12 |
Quote:
The incomplete swak4foam reference: The only exception currently implemented is if the current patch is amappedpatch and the external expression is evaluated on the “part-ner patch”. In this case the non-uniform result will be mapped to thelocal patch Edit: Can u share ur mapped BC? or some tutorials? Thanks in advance!! Last edited by ancolli; July 31, 2017 at 07:32. |
||
Tags |
coupled bc, groovybc, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' | muth | OpenFOAM Running, Solving & CFD | 3 | August 27, 2018 05:18 |
Division by zero exception - loop over scalarField | Pat84 | OpenFOAM Programming & Development | 6 | February 18, 2017 06:57 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Diverging solution in transonicMRFDyMFoam | tsalter | OpenFOAM Running, Solving & CFD | 30 | July 7, 2014 07:20 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 02:47 |