|
[Sponsors] |
August 29, 2018, 10:58 |
mapToSurface in surfactantFoam OF1712
|
#1 |
Member
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10 |
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()); Code:
Cs.primitiveFieldRef()=vsm.mapToSurface<scalar>(Cvf.boundaryFieldRef()); 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? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[waves2Foam] surfaceElevation not found under OF1712 | blaise | OpenFOAM Community Contributions | 20 | December 15, 2020 13:50 |
SurfactantFoam visualization of areaScalarField | jaswi | OpenFOAM Running, Solving & CFD | 4 | October 25, 2018 10:31 |
finiteArea mapToSurface | Andrew.Coughtrie | OpenFOAM Programming & Development | 4 | March 6, 2018 05:31 |
Problems with cyclic boundaries in faMeshDefinition and surfactantFoam | safre | OpenFOAM | 3 | December 12, 2011 08:56 |
Errors with surfactantFoam While Compiling OpenFOAM141dev from extends | chegdan | OpenFOAM Installation | 1 | July 3, 2008 22:10 |