CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Construction of VolScalarField from surfaceScalarField

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By pakanatiakash

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2016, 07:44
Default Construction of VolScalarField from surfaceScalarField
  #1
New Member
 
Akash
Join Date: Jun 2014
Location: Oslo
Posts: 29
Rep Power: 11
pakanatiakash is on a distinguished road
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
Kummi and missios like this.
pakanatiakash is offline   Reply With Quote

Old   March 18, 2016, 16:06
Default
  #2
Member
 
Thomas Boucheres
Join Date: May 2013
Posts: 41
Rep Power: 12
thomasArk47 is on a distinguished road
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
thomasArk47 is offline   Reply With Quote

Old   April 2, 2016, 14:12
Default
  #3
New Member
 
Akash
Join Date: Jun 2014
Location: Oslo
Posts: 29
Rep Power: 11
pakanatiakash is on a distinguished road
Hey

Thanks for the info

Akash
pakanatiakash is offline   Reply With Quote

Old   April 4, 2016, 11:17
Default
  #4
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
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
marupio is offline   Reply With Quote

Old   April 11, 2016, 07:59
Default
  #5
Member
 
Vignesh
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 66
Rep Power: 13
vigneshTG is on a distinguished road
Quote:
Originally Posted by pakanatiakash View Post
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
Hi Akash,

Have you tried
Code:
fvc::average(alpha_s)
?
__________________
Thanks and Regards

Vignesh

Last edited by vigneshTG; April 11, 2016 at 12:10.
vigneshTG is offline   Reply With Quote

Old   October 30, 2023, 06:09
Default
  #6
New Member
 
Konstantinos Missios
Join Date: Mar 2017
Location: Copenhagen, Denmark.
Posts: 12
Rep Power: 9
missios is on a distinguished road
I think what are you looking for fvc::average().

Check this post surfaceScalarField into VolumeScalarField

Best

K
missios is offline   Reply With Quote

Old   November 8, 2023, 16:23
Default
  #7
Member
 
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 35
Rep Power: 3
MMRC is on a distinguished road
What is this used for? converting volume to surface fields?
MMRC is offline   Reply With Quote

Reply


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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 09:21
execFlowFunctionObjects - unknown field problem Toorop OpenFOAM Post-Processing 16 March 14, 2016 03:25
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 22:38
make a dimensionedScalar to be volScalarField sharonyue OpenFOAM Programming & Development 4 April 2, 2014 05:44
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 06:16


All times are GMT -4. The time now is 16:22.