I just can't make this solver run
I just can't make this solver run
I have received a code on the basis to develop further. I am pretty much new to OpenFOAM environment. the error saids segmentation failure, which seems it's accessing empty fields. I am thinking that my setups for the initialization folder 0 could be wrong posed or the solver that I am trying to get it work is not the final version. Please help. I just want to make this work to compare how it will be with further modification at the code. Link to my case and the code https://www.dropbox.com/s/b2anjuxc9i...er.tar.gz?dl=0 Solver Received https://www.dropbox.com/sh/xp685ojin...rCyBqXWxa?dl=0 |
A few quick questions:
|
For which OpenFOAM version was the solver originally designed for?
-> I don't have answer for this question. But it seems to be the problem.. Based on which solver was the custom solver designed? -> It seems it's based on 'compressibleInterFoam' modified comparing interPhaseChangeFoam. the energy calculating sections from compressibleInterFoam and phase changes from interPhaseChangeFoam but, not working in same class of 'mixture' but seperate mixture classes. In which OpenFOAM version are you trying to run this custom solver? -> I have 2.3.1... I should try other versions... |
Quote:
For example, this: Code:
/*---------------------------------------------------------------------------*\ --------------- edit: I've looked into your file "compressibleCavFoam.C" and it has this: Code:
/*---------------------------------------------------------------------------*\ |
Quote:
All three of them on Ubuntu 14.04 NONE of those versions could compile the solver.. i get errors saying as below.. Any help?? wrong compatibility with ubuntu 14.04? Code:
|
Hi,
IObject::groupName method appeared in 2.3.x (at least I wasn't able to find the method in 2.2.x, 2.1.x, and 2.0.x repositories). Also there is no src/finiteVolume/cfdTools/general/include/alphaControls.H file in 2.2.x and earlier. Again it is available in 2.3.x. So I guess compressibleCavFoam.C was started in 2.2.x era, while the rest somehow was updated for 2.3.x branch. |
Thx... still far from the original purpose... I just can't get it work.... feel like it was a problem of wrong problem settings for the case, not the problem of the solution itself @_@
|
Well,
If you try to build the solver (did you?), fix certain errors in Make/options (like missing -I$(LIB_SRC)/meshTools/lnInclude in EXE_INC or redefinition of rhoPhiSum in alphaEqnsSubCycle.H (lines 12 and 15)), build the solver with debug symbols, execute it in the case folder, you will get similar output : Code:
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 Code:
return tmp<volScalarField>(new volScalarField("muEff", mu())) Code:
const volScalarField& mu() const Code:
autoPtr<compressible::turbulenceModel> turbulence Code:
autoPtr<phaseChangeTwoPhaseMixture> mixture = |
All times are GMT -4. The time now is 03:43. |