CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] Trying to add isoAdvector feature to waves2Foam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By chia87

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2017, 23:33
Default Trying to add isoAdvector feature to waves2Foam
  #1
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
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 likes this.
chia87 is offline   Reply With Quote

Old   February 27, 2019, 17:23
Default Possibly a solution (CANNOT GURANTEE IT WORKS)
  #2
Member
 
Akshay Patil
Join Date: Nov 2015
Location: Pune, India
Posts: 34
Rep Power: 10
Akshay_11235 is on a distinguished road
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!
Attached Files
File Type: zip waveFoo.zip (11.0 KB, 6 views)
Akshay_11235 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[waves2Foam] New wave theory coded in FORTRAN, how to add to waves2Foam? Kun_zheng OpenFOAM Community Contributions 6 August 30, 2017 05:58
[PyFoam] and paraview eelcovv OpenFOAM Community Contributions 28 May 30, 2016 10:23
add two area around Cylinder in ansys sajjadcheraghian CFX 1 May 24, 2016 02:23


All times are GMT -4. The time now is 06:07.