|
[Sponsors] |
Segfault when using codedFixedValue and decomposePar |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 15, 2023, 12:25 |
Segfault when using codedFixedValue and decomposePar
|
#1 |
New Member
Join Date: Sep 2021
Location: München
Posts: 2
Rep Power: 0 |
Hello guys,
I am trying to simulate a flow over a wall mounted cube. The flow domain is simple box around this cube which I have generated with blockMesh. Now I want to use the codedFixedValue functionality to have a time dependent velocity BC at the inlet as can be seen below. Code:
inlet { type codedFixedValue; value uniform (0 0 0); name periodicInletVel; codeOptions #{ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude #}; codeInclude #{ #include "fvCFD.H" #include <cmath> #include <iostream> #include "vector.H" #}; code #{ const fvPatch& boundaryPatch = this->patch(); const vectorField& Cf = boundaryPatch.Cf(); vectorField& field = *this; const scalar t = this->db().time().value(); const scalar speed = 5; forAll(Cf, faceI) { field[faceI] = sin(t) * vector(speed, 0, 0); } #}; } Code:
numberOfSubdomains 8; method simple; // method metis; // method ptscotch; simpleCoeffs { n (2 2 2); delta 0.001; } hierarchicalCoeffs { n (1 1 1); delta 0.001; order xyz; } manualCoeffs { } metisCoeffs { } Code:
#0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigSegv::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::Hasher(void const*, unsigned long, unsigned int) at ??:? #4 Foam::HashTable<Foam::tmp<Foam::fvPatchField<Foam::Vector<double> > > (*)(Foam::fvPatch const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&), Foam::word, Foam::string::hash>::set(Foam::word const&, Foam::tmp<Foam::fvPatchField<Foam::Vector<double> > > (* const&)(Foam::fvPatch const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&), bool) at ??:? #5 ? at 0/U/boundaryField/inlet:112 #6 ? in "/lib64/ld-linux-x86-64.so.2" #7 ? in "/lib64/ld-linux-x86-64.so.2" #8 ? in "/lib64/ld-linux-x86-64.so.2" #9 ? in "/lib64/ld-linux-x86-64.so.2" #10 ? in "/lib64/ld-linux-x86-64.so.2" #11 ? in "/lib/x86_64-linux-gnu/libdl.so.2" #12 ? in "/lib64/ld-linux-x86-64.so.2" #13 ? in "/lib/x86_64-linux-gnu/libdl.so.2" #14 dlopen in "/lib/x86_64-linux-gnu/libdl.so.2" #15 Foam::dlOpen(Foam::fileName const&, bool) at ??:? #16 Foam::dlLibraryTable::open(Foam::fileName const&, bool) at ??:? #17 Foam::codedBase::loadLibrary(Foam::fileName const&, Foam::string const&, Foam::dictionary const&) const at ??:? #18 Foam::codedBase::updateLibrary() const at ??:? #19 Foam::fvPatchField<Foam::Vector<double> >::adddictionaryConstructorToTable<Foam::codedFixedValueFvPatchField<Foam::Vector<double> > >::New(Foam::fvPatch const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) at ??:? #20 Foam::fvPatchField<Foam::Vector<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) at ??:? #21 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::Boundary::readField(Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh> const&, Foam::dictionary const&) at ??:? #22 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) at ??:? #23 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::readFields() at ??:? #24 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&) at ??:? #25 ? at ??:? #26 ? at ??:? #27 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #28 ? at ??:? Segmentation fault |
|
June 26, 2023, 07:21 |
|
#2 |
New Member
Join Date: Sep 2021
Location: München
Posts: 2
Rep Power: 0 |
Has anyone an idea?
|
|
April 10, 2024, 02:22 |
|
#3 |
New Member
Quincy
Join Date: Sep 2023
Posts: 5
Rep Power: 3 |
I also encountered a same problem. Did you figured out the solution?
|
|
April 12, 2024, 06:45 |
|
#4 |
Member
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 57
Rep Power: 10 |
||
Tags |
codedfixedvalue, decomposepar |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pipeCyclic tutorial codeStream error in codedFixedValue BC specification | fivewood | OpenFOAM Running, Solving & CFD | 0 | January 15, 2014 23:36 |