CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Unable to run a linearmotion with InterFoam (https://www.cfd-online.com/Forums/openfoam-solving/229304-unable-run-linearmotion-interfoam.html)

CFDcultist August 3, 2020 22:56

Unable to run a linearmotion with InterFoam
 
Hello, :)

I am quite new to CFD and I've been having some difficulties with implementing a moving wall (linear motion) into my geometry.

I have created a cellzone and implemented an cyclicAMI constraint ( Not sure if it is correct to use it for a linear motion). Everytime I try to run my simulation, I encounter the following message:
Code:

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&)sh: 1: addr2line: not found
 addr2line failed
#1  Foam::error::abort()sh: 1: addr2line: not found
 addr2line failed
#2  void Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::interpolateToSource<Foam::Vector<double>, Foam::multiplyWeightedOp<Foam::Vector<double>, Foam::plusEqOp<Foam::Vector<double> > > >(Foam::UList<Foam::Vector<double> > const&, Foam::multiplyWeightedOp<Foam::Vector<double>, Foam::plusEqOp<Foam::Vector<double> > > const&, Foam::List<Foam::Vector<double> >&, Foam::UList<Foam::Vector<double> > const&) constsh: 1: addr2line: not found
 addr2line failed
#3  Foam::tmp<Foam::Field<Foam::Vector<double> > > Foam::cyclicAMIPolyPatch::interpolate<Foam::Vector<double> >(Foam::Field<Foam::Vector<double> > const&, Foam::UList<Foam::Vector<double> > const&) constsh: 1: addr2line: not found
 addr2line failed
#4  Foam::cyclicAMIFvPatchField<Foam::Vector<double> >::patchNeighbourField() constsh: 1: addr2line: not found
 addr2line failed
#5  Foam::coupledFvPatchField<Foam::Vector<double> >::evaluate(Foam::UPstream::commsTypes)sh: 1: addr2line: not found
 addr2line failed
#6  Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::Boundary::evaluate()sh: 1: addr2line: not found
 addr2line failed
#7  Foam::fv::gaussGrad<double>::gradf(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::word const&)sh: 1: addr2line: not found
 addr2line failed
#8  Foam::fv::gaussGrad<double>::calcGrad(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) constsh: 1: addr2line: not found
 addr2line failed
#9  Foam::fv::gradScheme<double>::grad(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) constsh: 1: addr2line: not found
 addr2line failed
#10  Foam::tmp<Foam::GeometricField<Foam::outerProduct<Foam::Vector<double>, double>::type, Foam::fvPatchField, Foam::volMesh> > Foam::fvc::grad<double>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&)sh: 1: addr2line: not found
 addr2line failed
#11  Foam::interfaceProperties::calculateK()sh: 1: addr2line: not found
 addr2line failed
#12  Foam::interfaceProperties::interfaceProperties(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::IOdictionary const&)sh: 1: addr2line: not found
 addr2line failed
#13  Foam::immiscibleIncompressibleTwoPhaseMixture::immiscibleIncompressibleTwoPhaseMixture(Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&)sh: 1: addr2line: not found
 addr2line failed
#14  ?sh: 1: addr2line: not found
 addr2line failed
#15  __libc_start_mainsh: 1: addr2line: not found
 addr2line failed
#16  ?sh: 1: addr2line: not found
 addr2line failed
Aborted (core dumped)

I tried looking what addr2line is but couldnt figure it out.
I should note that I am using Windows/Ubuntu.

Would it be possible to help me?

Thank you! :)

abeda February 3, 2021 08:45

Hi,

Did you scale your problem?
I also had problems with addr2line, but it was solved when I scaled geometries by a factor of 10.

I just created a simulation using interFoam and moved my ship geometry (stl) through restricted waterways defined by stl using linearMotion by using cyclicAMI.

Ann B

CFDcultist February 3, 2021 08:47

Yes, scaling up my geometry was the key! Thank you very much!


All times are GMT -4. The time now is 10:43.