|
[Sponsors] |
Construction of VolScalarField from surfaceScalarField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 14, 2016, 08:44 |
Construction of VolScalarField from surfaceScalarField
|
#1 |
New Member
Akash
Join Date: Jun 2014
Location: Oslo
Posts: 29
Rep Power: 12 |
Hi All
If I understood correct, I can use interpolate option to interpolate volume fields to surface fields (both vector and scalar). At the same time I can use reconstruct option to get back volume vector fields from surface fields. I would like to know how to reconstruct volume scalar fields from surface scalar fields? As the reconstruct option would bring out a vector. Looking for some quick answers! Akash |
|
March 18, 2016, 17:06 |
|
#2 |
Member
Thomas Boucheres
Join Date: May 2013
Posts: 41
Rep Power: 13 |
Hello,
1- use the reconstructMag function (see finiteVolume/finiteVolume/fvc/fvcReconstructMag.C) 2- the only thing an open-source community cannot guarantee is the quickness of an answer Aka |
|
April 2, 2016, 15:12 |
|
#3 |
New Member
Akash
Join Date: Jun 2014
Location: Oslo
Posts: 29
Rep Power: 12 |
Hey
Thanks for the info Akash |
|
April 4, 2016, 12:17 |
|
#4 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
I'm just guessing here, but isn't reconstructMag(U) a short for reconstruct(mag(U))? I think that would return a volScalarField. You probably want reconstruct(U).
__________________
~~~ Follow me on twitter @DavidGaden |
|
April 11, 2016, 08:59 |
|
#5 | |
Member
Vignesh
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 66
Rep Power: 14 |
Quote:
Have you tried Code:
fvc::average(alpha_s)
__________________
Thanks and Regards Vignesh Last edited by vigneshTG; April 11, 2016 at 13:10. |
||
October 30, 2023, 07:09 |
|
#6 |
New Member
Konstantinos Missios
Join Date: Mar 2017
Location: Copenhagen, Denmark.
Posts: 12
Rep Power: 9 |
I think what are you looking for fvc::average().
Check this post surfaceScalarField into VolumeScalarField Best K |
|
November 8, 2023, 17:23 |
|
#7 |
Member
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 48
Rep Power: 3 |
What is this used for? converting volume to surface fields?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] libOpenSMOKE | Tobi | OpenFOAM Community Contributions | 562 | January 25, 2023 10:21 |
execFlowFunctionObjects - unknown field problem | Toorop | OpenFOAM Post-Processing | 16 | March 14, 2016 04:25 |
using chemkin | JMDag2004 | OpenFOAM Pre-Processing | 2 | March 8, 2016 23:38 |
make a dimensionedScalar to be volScalarField | sharonyue | OpenFOAM Programming & Development | 4 | April 2, 2014 06:44 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |