CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] groovyBC- nonuniform scalar mapping

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 3, 2017, 05:40
Default groovyBC- nonuniform scalar mapping
  #1
Member
 
Ashish Vinayak
Join Date: Mar 2015
Location: Wuppertal, Germany
Posts: 50
Rep Power: 11
ashish.vinayak is on a distinguished road
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 {
type groovyBC;
valueExpression "gass";
variables "gass{interfacePatch/solidRegion}=phiGas;";
initialValue nonuniform List<scalar> (0, 0, ....., 0);
}


in the solid region (these values are calculated by the solver during a time step)

interfacePatch {
type calculated;
value nonuniform List<scalar> (...);
}

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.
ashish.vinayak is offline   Reply With Quote

 

Tags
coupled bc, groovybc, swak4foam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 04:18
Division by zero exception - loop over scalarField Pat84 OpenFOAM Programming & Development 6 February 18, 2017 05:57
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Diverging solution in transonicMRFDyMFoam tsalter OpenFOAM Running, Solving & CFD 30 July 7, 2014 06:20
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47


All times are GMT -4. The time now is 07:58.