CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Parallelization of a self-compiled boundary condition (https://www.cfd-online.com/Forums/openfoam-programming-development/244253-parallelization-self-compiled-boundary-condition.html)

dalasrevo July 29, 2022 11:59

Parallelization of a self-compiled boundary condition
 
2 Attachment(s)
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

dalasrevo July 30, 2022 09:16

Quote:

Originally Posted by dalasrevo (Post 832671)
mpirun -np 12 interFoam

Ups, of course I try to run it with

Code:

mpirun -np 12 interFoam -parallel

dalasrevo July 31, 2022 04:26

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:
https://www.cfd-online.com/Forums/op...tml#post815384


Many hanks to @scleaky for posting the original version of the boundary condition and for the errata!

TommyJ July 31, 2022 09:06

Quote:

Originally Posted by dalasrevo (Post 832756)
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:
https://www.cfd-online.com/Forums/op...tml#post815384


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?

dalasrevo August 2, 2022 14:16

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


All times are GMT -4. The time now is 15:40.