CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Parallelization of a self-compiled boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2022, 12:59
Default Parallelization of a self-compiled boundary condition
  #1
New Member
 
Tobias
Join Date: Jul 2022
Posts: 14
Rep Power: 4
dalasrevo is on a distinguished road
Hello,

I am really very new to this subject, so I apologize if my question is too vague or has already been answered elsewhere here. I have searched, but perhaps for lack of correct search words did not find a solution.
My setup: I have openfoam-2206 (for no special reason, just because it was the version which was installed on the computer) on Platform: linux64GccDPInt32Opt (mpi=sys-openmpi).

I have the following problem: I have a flow line with water (open to the atmosphere at the top) and I would like to have an outlet with a defined water level, analogous to the boundary condition variableHeightFlowRateInletVelocity. I found the following:

http://www.tfd.chalmers.se/~hani/kur...key_report.pdf: (Inlets, outlets, and post-processing for modeling open-channel flow with the volume of fluid method). This does exactly what I am looking for. Here, a boundray condition depthOutletVelocity is developed from the boundary condition variableHeightFlowRateInletVelocity.
I get this so far and can also calculate the case on a core (weirOverflow from the tutorials with interFoam). What I can't manage is to run the whole thing in parallel (mpirun -np 12 interFoam). I always get the following error message:
Code:
[4] #0  [6] #0  [7] #0  [0] [1] #0  [2] #0  [3] #0  Foam::error::printStack(Foam::Ostream&)[9] #0  Foam::error::printStack(Foam::Ostream&)[10] #0  Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)#0  Foam::error::printStack(Foam::Ostream&) at ??:?
[2] #1  Foam::sigSegv::sigHandler(int) at ??:?
[0] #1  Foam::sigSegv::sigHandler(int) at ??:?
[1] #1  Foam::sigSegv::sigHandler(int) at ??:?
[7] #1  Foam::sigSegv::sigHandler(int) at ??:?
[3] #1  Foam::sigSegv::sigHandler(int) at ??:?
[10] #1  Foam::sigSegv::sigHandler(int) at  at ??:?
[4] #1  Foam::sigSegv::sigHandler(int)??:?
[6] #1  Foam::sigSegv::sigHandler(int) at ??:?
[9] #1  Foam::sigSegv::sigHandler(int) at ??:?
[4] #2  ? at ??:?
[0] #2  ? at ??:?
[10] #2  ? at ??:?
 at [7] #2  ???:?
[2] #2  ? at ??:?
[6] #2  ? at ??:?
[9] #2  ? at ??:?
[1] #2  ? at ??:?
[3] #2  ? in /lib/x86_64-linux-gnu/libc.so.6
[4] #3  Foam::depthOutletVelocityFvPatchVectorField::updateCoeffs() in /lib/x86_64-linux-gnu/libc.so.6
[0] #3  Foam::depthOutletVelocityFvPatchVectorField::updateCoeffs() in /lib/x86_64-linux-gnu/libc.so.6
[7] #3  Foam::depthOutletVelocityFvPatchVectorField::updateCoeffs() in  in /lib/x86_64-linux-gnu/libc.so.6
[10] #3  Foam::depthOutletVelocityFvPatchVectorField::updateCoeffs()/lib/x86_64-linux-gnu/libc.so.6
[6] #3  Foam::depthOutletVelocityFvPatchVectorField::updateCoeffs() in /lib/x86_64-linux-gnu/libc.so.6
[2] #3  Foam::depthOutletVelocityFvPatchVectorField::updateCoeffs() in /lib/x86_64-linux-gnu/libc.so.6
[9] #3  Foam::depthOutletVelocityFvPatchVectorField::updateCoeffs() in /lib/x86_64-linux-gnu/libc.so.6
[1] #3  Foam::depthOutletVelocityFvPatchVectorField::updateCoeffs() at ??:?
[4] #4   at ??:?
[0] #4   in /lib/x86_64-linux-gnu/libc.so.6
[3] #3  Foam::depthOutletVelocityFvPatchVectorField::updateCoeffs() at ??:?
[7] #4   at ??:?
[2] #4 at ??:?
  [10] #4   at ??:?
[6] #4  ? at ??:?
[9] #4  ? at ??:?
[1] #4  ?? at ??:?
[3] #4  ??? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[4] #5  ??? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[0] #5  ? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[7]  in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[6] #5  ?#5  ? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[10] #5  ? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[2] #5  ? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[9] #5  ? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[1] #5  ? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[3] #5  ? in /lib/x86_64-linux-gnu/libc.so.6
[4] #6  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[0] #6  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[10] #6  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[6] #6  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[7] #6  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[2] #6  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[9] #6  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[3] #6  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[1] #6  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
[4] #7   in /lib/x86_64-linux-gnu/libc.so.6 in /lib/x86_64-linux-gnu/libc.so.6
[0] #7  
[7] #7   in /lib/x86_64-linux-gnu/libc.so.6
[10] #7   in /lib/x86_64-linux-gnu/libc.so.6
[6] #7   in /lib/x86_64-linux-gnu/libc.so.6
[2] #7   in /lib/x86_64-linux-gnu/libc.so.6
[9] #7  ????? in /lib/x86_64-linux-gnu/libc.so.6
[1] #7   in /lib/x86_64-linux-gnu/libc.so.6
[3] #7  ??? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[openfoam:49332] *** Process received signal ***
[openfoam:49332] Signal: Segmentation fault (11)
[openfoam:49332] Signal code:  (-6)
[openfoam:49332] Failing at address: 0x3e90000c0b4
[openfoam:49332] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f06f175a520]
[openfoam:49332] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f06f17aea7c]
[openfoam:49332] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f06f175a476]
[openfoam:49332] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f06f175a520]
[openfoam:49332] [ 4] /home/laska/OpenFOAM/laska-v2206/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so(_ZN4Foam37depthOutletVelocityFvPatchVectorField12updateCoeffsEv+0xbd0)[0x7f06ec078100]
[openfoam:49332] [ 5] interFoam(+0x33766)[0x562ec6182766]
[openfoam:49332] [ 6] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f06f1741d90]
[openfoam:49332] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f06f1741e40]
[openfoam:49332] [ 8] interFoam(+0x445d5)[0x562ec61935d5]
[openfoam:49332] *** End of error message ***
 in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[openfoam:49328] *** Process received signal ***
[openfoam:49328] Signal: Segmentation fault (11)
[openfoam:49328] Signal code:  (-6)
[openfoam:49328] Failing at address: 0x3e90000c0b0
[openfoam:49328] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f090ab11520]
[openfoam:49328] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f090ab65a7c]
[openfoam:49328] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f090ab11476]
[openfoam:49328] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f090ab11520]
[openfoam:49328] [ 4] /home/laska/OpenFOAM/laska-v2206/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so(_ZN4Foam37depthOutletVelocityFvPatchVectorField12updateCoeffsEv+0xbd0)[0x7f08f9cce100]
[openfoam:49328] [ 5] interFoam(+0x33766)[0x564e9d2d6766]
[openfoam:49328] [ 6] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f090aaf8d90]
[openfoam:49328] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f090aaf8e40]
[openfoam:49328] [ 8] interFoam(+0x445d5)[0x564e9d2e75d5]
[openfoam:49328] *** End of error message ***
? in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[openfoam:49334] *** Process received signal ***
[openfoam:49334] Signal: Segmentation fault (11)
[openfoam:49334] Signal code:  (-6)
[openfoam:49334] Failing at address: 0x3e90000c0b6
[openfoam:49334] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f19952b5520]
[openfoam:49334] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f1995309a7c]
[openfoam:49334] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f19952b5476]
[openfoam:49334] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f19952b5520]
[openfoam:49334] [ 4] /home/laska/OpenFOAM/laska-v2206/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so(_ZN4Foam37depthOutletVelocityFvPatchVectorField12updateCoeffsEv+0xbd0)[0x7f19903b1100]
[openfoam:49334] [ 5] interFoam(+0x33766)[0x55f325b70766]
[openfoam:49334] [ 6]  in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[openfoam:49335] *** Process received signal ***
[openfoam:49335] Signal: Segmentation fault (11)
[openfoam:49335] Signal code:  (-6)
[openfoam:49335] Failing at address: 0x3e90000c0b7
[openfoam:49335] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f02bdf97520]
[openfoam:49335] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f02bdfeba7c]
[openfoam:49335] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f02bdf97476]
[openfoam:49335] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f02bdf97520]
[openfoam:49335] [ 4] /home/laska/OpenFOAM/laska-v2206/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so(_ZN4Foam37depthOutletVelocityFvPatchVectorField12updateCoeffsEv+0xbd0)[0x7f02b808b100]
[openfoam:49335] [ 5] interFoam(+0x33766)[0x55d2f9a34766]
[openfoam:49335] [ 6]  in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[openfoam:49338] *** Process received signal ***
[openfoam:49338] Signal: Segmentation fault (11)
[openfoam:49338] Signal code:  (-6)
[openfoam:49338] Failing at address: 0x3e90000c0ba
[openfoam:49338] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f657c290520]
[openfoam:49338] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f657c2e4a7c]
[openfoam:49338] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f657c290476]
[openfoam:49338] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f657c290520]
[openfoam:49338] [ 4] /home/laska/OpenFOAM/laska-v2206/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so(_ZN4Foam37depthOutletVelocityFvPatchVectorField12updateCoeffsEv+0xbd0)[0x7f6570776100]
[openfoam:49338] [ 5] interFoam(+0x33766)[0x5556bb103766]
[openfoam:49338] [ 6] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f657c277d90]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f199529cd90]
[openfoam:49334] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f199529ce40]
[openfoam:49334] [ 8] interFoam(+0x445d5)[0x55f325b815d5]
[openfoam:49334] *** End of error message ***
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f02bdf7ed90]
[openfoam:49335] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f02bdf7ee40]
[openfoam:49335] [ 8] interFoam(+0x445d5)[0x55d2f9a455d5]
[openfoam:49335] *** End of error message ***
[openfoam:49338] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f657c277e40]
[openfoam:49338] [ 8] interFoam(+0x445d5)[0x5556bb1145d5]
[openfoam:49338] *** End of error message ***
 in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[openfoam:49330] *** Process received signal ***
[openfoam:49330] Signal: Segmentation fault (11)
[openfoam:49330] Signal code:  (-6)
[openfoam:49330] Failing at address: 0x3e90000c0b2
[openfoam:49330] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7ff025818520]
[openfoam:49330] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7ff02586ca7c]
[openfoam:49330] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7ff025818476]
[openfoam:49330] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7ff025818520]
[openfoam:49330] [ 4] /home/laska/OpenFOAM/laska-v2206/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so(_ZN4Foam37depthOutletVelocityFvPatchVectorField12updateCoeffsEv+0xbd0)[0x7ff020112100]
[openfoam:49330] [ 5] interFoam(+0x33766)[0x5607b6d32766]
[openfoam:49330] [ 6] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7ff0257ffd90]
[openfoam:49330] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7ff0257ffe40]
[openfoam:49330] [ 8] interFoam(+0x445d5)[0x5607b6d435d5]
[openfoam:49330] *** End of error message ***
 in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[openfoam:49337] *** Process received signal ***
[openfoam:49337] Signal: Segmentation fault (11)
[openfoam:49337] Signal code:  (-6)
[openfoam:49337] Failing at address: 0x3e90000c0b9
[openfoam:49337] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7fa493e54520]
[openfoam:49337] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7fa493ea8a7c]
[openfoam:49337] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7fa493e54476]
[openfoam:49337] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7fa493e54520]
[openfoam:49337] [ 4] /home/laska/OpenFOAM/laska-v2206/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so(_ZN4Foam37depthOutletVelocityFvPatchVectorField12updateCoeffsEv+0xbd0)[0x7fa488343100]
[openfoam:49337] [ 5] interFoam(+0x33766)[0x5586e9719766]
[openfoam:49337] [ 6] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7fa493e3bd90]
[openfoam:49337] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7fa493e3be40]
[openfoam:49337] [ 8] interFoam(+0x445d5)[0x5586e972a5d5]
[openfoam:49337] *** End of error message ***
 in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[openfoam:49331] *** Process received signal ***
[openfoam:49331] Signal: Segmentation fault (11)
[openfoam:49331] Signal code:  (-6)
[openfoam:49331] Failing at address: 0x3e90000c0b3
[openfoam:49331] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f5c58ca3520]
[openfoam:49331] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7f5c58cf7a7c]
[openfoam:49331] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7f5c58ca3476]
[openfoam:49331] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f5c58ca3520]
[openfoam:49331] [ 4] /home/laska/OpenFOAM/laska-v2206/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so(_ZN4Foam37depthOutletVelocityFvPatchVectorField12updateCoeffsEv+0xbd0)[0x7f5c5419c100]
[openfoam:49331] [ 5] interFoam(+0x33766)[0x5573d48ad766]
[openfoam:49331] [ 6] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f5c58c8ad90]
[openfoam:49331] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f5c58c8ae40]
[openfoam:49331] [ 8] interFoam(+0x445d5)[0x5573d48be5d5]
[openfoam:49331] *** End of error message ***
 in /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/interFoam
[openfoam:49329] *** Process received signal ***
[openfoam:49329] Signal: Segmentation fault (11)
[openfoam:49329] Signal code:  (-6)
[openfoam:49329] Failing at address: 0x3e90000c0b1
[openfoam:49329] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7fdcf8b8e520]
[openfoam:49329] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c)[0x7fdcf8be2a7c]
[openfoam:49329] [ 2] /lib/x86_64-linux-gnu/libc.so.6(raise+0x16)[0x7fdcf8b8e476]
[openfoam:49329] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7fdcf8b8e520]
[openfoam:49329] [ 4] /home/laska/OpenFOAM/laska-v2206/platforms/linux64GccDPInt32Opt/lib/libdepthOutletVelocity.so(_ZN4Foam37depthOutletVelocityFvPatchVectorField12updateCoeffsEv+0xbd0)[0x7fdcf4087100]
[openfoam:49329] [ 5] interFoam(+0x33766)[0x56490f779766]
[openfoam:49329] [ 6] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7fdcf8b75d90]
[openfoam:49329] [ 7] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7fdcf8b75e40]
[openfoam:49329] [ 8] interFoam(+0x445d5)[0x56490f78a5d5]
[openfoam:49329] *** End of error message ***
I am working in $WM_PROJECT_USER_DIR/src/finiteVolume and my files in Make look like this:


Make/files
Code:
fields/fvPatchFields/derived/depthOutletVelocity/depthOutletVelocityFvPatchVectorField.C
LIB = $(FOAM_USER_LIBBIN)/libdepthOutletVelocity
Make/options
Code:
EXE_INC = \
-I$(LIB_SRC)/fileFormats/lnInclude \
-I$(LIB_SRC)/surfMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude
LIB_LIBS = \
-lOpenFOAM \
-lfileFormats \
-lsurfMesh \
-lmeshTools
My depthOutletVelocity/depthOutletVelocityFvPatchVectorField.H and depthOutletVelocityFvPatchVectorField.C are attached.


What I think I understand is that it has something to do with the write(stream& os) in depthOutletVelocityFvPatchVectorField.C, because the function looks somehow different than in the linked pdf.
But there I am completely lost. So any help would be greatly appreciated!


Best regards
Attached Files
File Type: h depthOutletVelocityFvPatchVectorField.H (5.7 KB, 4 views)
File Type: c depthOutletVelocityFvPatchVectorField.C (5.6 KB, 5 views)
dalasrevo is offline   Reply With Quote

Old   July 30, 2022, 10:16
Default
  #2
New Member
 
Tobias
Join Date: Jul 2022
Posts: 14
Rep Power: 4
dalasrevo is on a distinguished road
Quote:
Originally Posted by dalasrevo View Post
mpirun -np 12 interFoam
Ups, of course I try to run it with

Code:
mpirun -np 12 interFoam -parallel
dalasrevo is offline   Reply With Quote

Old   July 31, 2022, 05:26
Default
  #3
New Member
 
Tobias
Join Date: Jul 2022
Posts: 14
Rep Power: 4
dalasrevo is on a distinguished road
I have found the error It was also discussed here in the forum already (I have apparently actually searched badly).
If someone still searches just as bad, here is the link to the solution:
Error with custom library linked in controlDict


Many hanks to @scleaky for posting the original version of the boundary condition and for the errata!
dalasrevo is offline   Reply With Quote

Old   July 31, 2022, 10:06
Default
  #4
New Member
 
Join Date: Jun 2022
Posts: 19
Rep Power: 4
TommyJ is on a distinguished road
Quote:
Originally Posted by dalasrevo View Post
I have found the error It was also discussed here in the forum already (I have apparently actually searched badly).
If someone still searches just as bad, here is the link to the solution:
Error with custom library linked in controlDict


Many hanks to @scleaky for posting the original version of the boundary condition and for the errata!
Would you be so kind as to post what was wrong and the corresponding correction?
TommyJ is offline   Reply With Quote

Old   August 2, 2022, 15:16
Default
  #5
New Member
 
Tobias
Join Date: Jul 2022
Posts: 14
Rep Power: 4
dalasrevo is on a distinguished road
You can find the answer in the thread which I linked, but in fact is was really a one-liner:


Code:
vector velocityNew = avgVel * normals[0];
in depthOutletVelocityFvPatchVectorField.C must be changed to

Code:
vectorField velocityNew = avgVel * normals;
You can find the errata here: http://www.tfd.chalmers.se/~hani/kur...key/Errata.pdf
dalasrevo is offline   Reply With Quote

Reply


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Centrifugal fan j0hnny CFX 13 October 1, 2019 14:55
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Accessing multiple boundary patches from a custom boundary condition file ripudaman OpenFOAM Programming & Development 0 October 22, 2014 19:34
Radiation interface hinca CFX 15 January 26, 2014 18:11


All times are GMT -4. The time now is 00:32.