CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] Trying to add isoAdvector feature to waves2Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/205713-trying-add-isoadvector-feature-waves2foam.html)

chia87 August 30, 2017 22:33

Trying to add isoAdvector feature to waves2Foam
 
Hi foamers,

I using OF Advector, source code that have sharper surface tracking capabilities,

I'm trying to compile wave2foam via modifying interFoam

https://sites.google.com/site/jordim...ic-mesh-motion

I using the solver 'solver300_ext' for my attempts to compile, could it be a version mismatch?

Thanks everyone for their time

Code:

ddtScheme.C: In member function ‘Foam::tmp<Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fv::ddtScheme<Type>::fvcDdtPhiCoeff(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, const fluxFieldType&)’:
ddtScheme.C:226:41: error: ‘dotInterpolate’ is not a member of ‘Foam::fvc’
    return fvcDdtPhiCoeff(U, phi, phi - fvc::dotInterpolate(mesh().Sf(), U));
                                        ^
In file included from fvcDiv.C:29:0,
                from fvcDiv.H:180,
                from fvcDDt.C:27,
                from fvcDDt.H:76,
                from fvc.H:45,
                from fvCFD.H:8,
                from relaxationWeightCourantCorrection.H:48,
                from relaxationWeight.H:63,
                from relaxationScheme.H:65,
                from relaxationZone.H:44,
                from waveDyMFoam.C:37:
divScheme.H: At global scope:
divScheme.H:78:13: error: ‘surfaceInterpolationScheme’ was not declared in this scope
        tmp<surfaceInterpolationScheme<Type>> tinterpScheme_;
            ^
divScheme.H:78:40: error: template argument 1 is invalid
        tmp<surfaceInterpolationScheme<Type>> tinterpScheme_;
                                        ^
divScheme.H:78:44: error: expected unqualified-id before ‘>’ token
        tmp<surfaceInterpolationScheme<Type>> tinterpScheme_;
                                            ^
divScheme.H: In constructor ‘Foam::fv::divScheme<Type>::divScheme(const Foam::fvMesh&)’:
divScheme.H:114:13: error: class ‘Foam::fv::divScheme<Type>’ does not have any field named ‘tinterpScheme_’
            tinterpScheme_(new linear<Type>(mesh))
            ^
divScheme.H:114:32: error: ‘linear’ does not name a type
            tinterpScheme_(new linear<Type>(mesh))
                                ^
divScheme.H:114:43: error: expected primary-expression before ‘>’ token
            tinterpScheme_(new linear<Type>(mesh))
                                          ^
divScheme.H: In constructor ‘Foam::fv::divScheme<Type>::divScheme(const Foam::fvMesh&, Foam::Istream&)’:
divScheme.H:121:13: error: class ‘Foam::fv::divScheme<Type>’ does not have any field named ‘tinterpScheme_’
            tinterpScheme_(surfaceInterpolationScheme<Type>::New(mesh, is))
            ^
divScheme.H:121:28: error: ‘surfaceInterpolationScheme’ was not declared in this scope
            tinterpScheme_(surfaceInterpolationScheme<Type>::New(mesh, is))
                            ^
divScheme.H:121:59: error: expected primary-expression before ‘>’ token
            tinterpScheme_(surfaceInterpolationScheme<Type>::New(mesh, is))
                                                          ^
divScheme.H:121:60: error: ‘::New’ has not been declared
            tinterpScheme_(surfaceInterpolationScheme<Type>::New(mesh, is))
                                                            ^
divScheme.H:121:60: note: suggested alternative:
In file included from /home/gtc/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/GeometricFieldFunctions.C:26:0,
                from /home/gtc/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/GeometricField.C:1337,
                from /home/gtc/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/GeometricField.H:655,
                from /home/gtc/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/GeometricScalarField.H:38,
                from /home/gtc/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/GeometricFields.H:34,
                from volFields.H:37,
                from relaxationScheme.H:56,
                from relaxationZone.H:44,
                from waveDyMFoam.C:37:
/home/gtc/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/GeometricFieldReuseFunctions.H:79:49: note:  ‘Foam::New’
 tmp<GeometricField<TypeR, PatchField, GeoMesh>> New
                                                ^
In file included from fvcGrad.C:29:0,
                from fvcGrad.H:124,
                from fvc.H:49,
                from fvCFD.H:8,
                from relaxationWeightCourantCorrection.H:48,
                from relaxationWeight.H:63,
                from relaxationScheme.H:65,
                from relaxationZone.H:44,
                from waveDyMFoam.C:37:
gaussGrad.H: In constructor ‘Foam::fv::gaussGrad<Type>::gaussGrad(const Foam::fvMesh&)’:
gaussGrad.H:91:32: error: ‘linear’ does not name a type
            tinterpScheme_(new linear<Type>(mesh))
                                ^
gaussGrad.H:91:43: error: expected primary-expression before ‘>’ token
            tinterpScheme_(new linear<Type>(mesh))
                                          ^
gaussGrad.H: In constructor ‘Foam::fv::gaussGrad<Type>::gaussGrad(const Foam::fvMesh&, Foam::Istream&)’:
gaussGrad.H:104:21: error: expected primary-expression before ‘(’ token
                    (
                    ^
gaussGrad.H:105:29: error: ‘linear’ does not name a type
                        new linear<Type>(mesh)
                            ^
gaussGrad.H:105:40: error: expected primary-expression before ‘>’ token
                        new linear<Type>(mesh)
                                        ^
In file included from correctedSnGrad.H:153:0,
                from laplacianScheme.H:45,
                from fvcLaplacian.C:28,
                from fvcLaplacian.H:242,
                from fvc.H:53,
                from fvCFD.H:8,
                from relaxationWeightCourantCorrection.H:48,
                from relaxationWeight.H:63,
                from relaxationScheme.H:65,
                from relaxationZone.H:44,
                from waveDyMFoam.C:37:
correctedSnGrad.C: In member function ‘Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh> > Foam::fv::correctedSnGrad<Type>::fullGradCorrection(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) const’:
correctedSnGrad.C:53:9: error: ‘linear’ was not declared in this scope
        linear<typename outerProduct<vector, Type>::type>(mesh).dotInterpolate
        ^
correctedSnGrad.C:53:9: note: suggested alternative:
In file included from surfaceInterpolateTemplates.C:28:0,
                from surfaceInterpolate.H:170,
                from fvc.H:39,
                from fvCFD.H:8,
                from relaxationWeightCourantCorrection.H:48,
                from relaxationWeight.H:63,
                from relaxationScheme.H:65,
                from relaxationZone.H:44,
                from waveDyMFoam.C:37:
linear.H:52:7: note:  ‘Foam::compressibilityModels::linear’
 class linear
      ^


Akshay_11235 February 27, 2019 16:23

Possibly a solution (CANNOT GURANTEE IT WORKS)
 
1 Attachment(s)
Hello,


I think I managed to couple this. However, I must admit I have no idea if it makes any sense. I just tried to copy paste a few files here and there and compile it. It seems to be working. Could you confirm if it works the way isoAdvector should?



Thank You!


All times are GMT -4. The time now is 00:24.