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

mapToSurface in surfactantFoam OF1712

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2018, 09:58
Default mapToSurface in surfactantFoam OF1712
  #1
ano
Member
 
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10
ano is on a distinguished road
Hi,

I would like to map the boundaryField of the volScalarField Cvf to the areaScalarField Cs, to use afterwards fac:: operators on the boundary data.
I got a "template argument deduction/substitution failed" when I used:
Code:
Cs.primitiveFieldRef()=vsm.mapToSurface(Cvf.boundaryFieldRef());
It works with
Code:
Cs.primitiveFieldRef()=vsm.mapToSurface<scalar>(Cvf.boundaryFieldRef());
1. Is it possible to use mapToSurface without explicit declaration of the Type? It works for foam extend, but not for OF1712.
2. And would it make sense to overload the = operator for areaScalarField, so that one has not to use the primitiveFieldRef()? It looks not very OpenFoamish at the moment, but perhaps there is a good reason to not overload it.
3. Since no solver is using mapToSurface (the others are only using mapToVolume), is there a better method to transfer the boundaryField data from volField to areaField?
ano 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
[waves2Foam] surfaceElevation not found under OF1712 blaise OpenFOAM Community Contributions 20 December 15, 2020 12:50
SurfactantFoam visualization of areaScalarField jaswi OpenFOAM Running, Solving & CFD 4 October 25, 2018 09:31
finiteArea mapToSurface Andrew.Coughtrie OpenFOAM Programming & Development 4 March 6, 2018 04:31
Problems with cyclic boundaries in faMeshDefinition and surfactantFoam safre OpenFOAM 3 December 12, 2011 07:56
Errors with surfactantFoam While Compiling OpenFOAM141dev from extends chegdan OpenFOAM Installation 1 July 3, 2008 21:10


All times are GMT -4. The time now is 03:44.