|
[Sponsors] |
January 25, 2016, 19:04 |
ghRef Dynamic Meshing
|
#1 |
New Member
Will
Join Date: Dec 2011
Posts: 17
Rep Power: 15 |
All,
Within iterDyMFoam you'll find on line 128 Code:
gh = (g & mesh.C()) - ghRef; ghf = (g & mesh.Cf()) - ghRef; We're created as an enhancement to the package waveFoam and waveDyMFoam. Simply merging the two. But in waveDyMFoam we have to write: Code:
gh = (g & mesh.C()); ghf = (g & mesh.Cf()); Code:
#include "readGravitationalAcceleration.H" #include "readhRef.H" #include "gh.H" Code:
volScalarField gh("gh", g & (mesh.C() - referencePoint)); surfaceScalarField ghf("ghf", g & (mesh.Cf() - referencePoint)); Obviously the solution is to sort though headers, but before I get that far I'd love to know the importance of ghRef. |
|
May 20, 2016, 14:46 |
|
#2 |
New Member
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 11 |
Hello Manoj and Agustino,
I am struggling at the same step. I found this: http://www.cfd-online.com/Forums/ope...c-meshing.html And proceed to the opposite: in createFields.H uncomment the two #include and comment the two solScalar and surfaceSaclar: original: Code:
//include "readhRef.H" //include "gh.H" #volScalarField gh("gh", g & (mesh.C() - referencePoint)); #surfaceScalarField ghf("ghf", g & (mesh.Cf() - referencePoint)); Code:
#include "readhRef.H" #include "gh.H" //volScalarField gh("gh", g & (mesh.C() - referencePoint)); //surfaceScalarField ghf("ghf", g & (mesh.Cf() - referencePoint)); The other solution I found is to copy-paste the definition of gh.H just before it is used in waveDyMFoam, but in removing the two last lines. Code:
if (mesh.changing()) { Info<< "Execution time for mesh.update() = " << runTime.elapsedCpuTime() - timeBeforeMeshUpdate << " s" << endl; dimensionedScalar ghRef ( mag(g.value()) > SMALL ? g & (cmptMag(g.value())/mag(g.value()))*hRef : dimensionedScalar("ghRef", g.dimensions()*dimLength, 0) ); //volScalarField gh("gh", (g & mesh.C()) - ghRef); //surfaceScalarField ghf("ghf", (g & mesh.Cf()) - ghRef); gh = (g & mesh.C()) - ghRef; ghf = (g & mesh.Cf()) - ghRef; } Code:
#include "readhRef.H" This way i am not altering the createFields.H The simulation runs and then crash the same (hopefully meaning it does not come from here) Cheers Pierre-Henri |
|
Tags |
wavefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFD simulation of gas cicrcuit breaker in fluent with dynamic meshing. | Mahesh7238 | FLUENT | 1 | April 5, 2021 01:21 |
Dynamic Meshing of Simple 2D Geometry | harman79 | FLUENT | 2 | January 17, 2018 07:07 |
UDF for dynamic meshing? | prasaddeole | FLUENT | 2 | October 6, 2014 12:55 |
negative cell volume during dynamic meshing | Tamjid | FLUENT | 1 | September 5, 2011 03:33 |
[GAMBIT] Dynamic Meshing of a combustion chamber | donarundas | ANSYS Meshing & Geometry | 1 | December 2, 2009 08:13 |