CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

[solids4Foam] flexibleDamBreak, issue getting parallel solve to work

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2023, 18:45
Default flexibleDamBreak, issue getting parallel solve to work
  #1
New Member
 
Brandon Hayes
Join Date: Jun 2023
Posts: 3
Rep Power: 2
bsh4263 is on a distinguished road
Hello everyone,

I am trying to use solids4Foam to solve a 2-phase, FSI problem and am using the flexibleDamBreak tutorial as a starting case. I will eventually need a full 3D solve and will need to be able to solve in parallel; however, I am having difficulties getting solids4Foam to run in parallel with the flexibleDamBreak tutorial. I modified the Allrun file to run in parallel by decomposing the mesh which works fine

Code:
#!/bin/bash

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Source solids4Foam scripts
source solids4FoamScripts.sh

# Check case version is correct
solids4Foam::convertCaseFormat .

# Create meshes
solids4Foam::runApplication -s solid blockMesh -region solid
solids4Foam::runApplication -s fluid blockMesh -region fluid

solids4Foam::runApplication -a renumberMesh -region fluid -overwrite
solids4Foam::runApplication -a renumberMesh -region solid -overwrite

# Set water volume fraction field (alpha) in the fluid
cp 0/fluid/alpha1.org 0/fluid/alpha1
(cd 0/fluid && ln -s alpha1 alpha.water)
solids4Foam::runApplication setFields -region fluid

# Run Solver Parallel
solids4Foam::runApplication -a decomposePar -region fluid
solids4Foam::runApplication -a decomposePar -region solid
solids4Foam::runParallel solids4Foam

# Run solver Serial
#solids4Foam::runApplication solids4Foam

touch foam.foam
but when I run the solids4Foam solver in parallel, my simulation crashes before the first time step is run. I attached the solids4Foam solver log file. Any advice / suggestions would be greatly appreciated! I am using OpenFOAM v-2012 and solids4Foam v2

Thanks,
Brandon
Attached Files
File Type: txt log.solids4Foam.txt (17.2 KB, 8 views)

Last edited by bsh4263; June 2, 2023 at 20:38.
bsh4263 is offline   Reply With Quote

Old   June 3, 2023, 19:45
Default
  #2
New Member
 
Join Date: Jan 2018
Posts: 18
Rep Power: 8
Zhi Cheng is on a distinguished road
Have you solved this problem? I am being faced with the same issues LOL. Many thanks!

Zhi

Quote:
Originally Posted by bsh4263 View Post
Hello everyone,

I am trying to use solids4Foam to solve a 2-phase, FSI problem and am using the flexibleDamBreak tutorial as a starting case. I will eventually need a full 3D solve and will need to be able to solve in parallel; however, I am having difficulties getting solids4Foam to run in parallel with the flexibleDamBreak tutorial. I modified the Allrun file to run in parallel by decomposing the mesh which works fine

Code:
#!/bin/bash

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Source solids4Foam scripts
source solids4FoamScripts.sh

# Check case version is correct
solids4Foam::convertCaseFormat .

# Create meshes
solids4Foam::runApplication -s solid blockMesh -region solid
solids4Foam::runApplication -s fluid blockMesh -region fluid

solids4Foam::runApplication -a renumberMesh -region fluid -overwrite
solids4Foam::runApplication -a renumberMesh -region solid -overwrite

# Set water volume fraction field (alpha) in the fluid
cp 0/fluid/alpha1.org 0/fluid/alpha1
(cd 0/fluid && ln -s alpha1 alpha.water)
solids4Foam::runApplication setFields -region fluid

# Run Solver Parallel
solids4Foam::runApplication -a decomposePar -region fluid
solids4Foam::runApplication -a decomposePar -region solid
solids4Foam::runParallel solids4Foam

# Run solver Serial
#solids4Foam::runApplication solids4Foam

touch foam.foam
but when I run the solids4Foam solver in parallel, my simulation crashes before the first time step is run. I attached the solids4Foam solver log file. Any advice / suggestions would be greatly appreciated! I am using OpenFOAM v-2012 and solids4Foam v2

Thanks,
Brandon
Zhi Cheng is offline   Reply With Quote

Old   June 5, 2023, 19:32
Default
  #3
New Member
 
Brandon Hayes
Join Date: Jun 2023
Posts: 3
Rep Power: 2
bsh4263 is on a distinguished road
Yes it seems to be an issue with using OpenFOAM-v2012. When I switch to OpenFOAM v9 (foundation .org version), I am able to get the parallel solver working with the flexibleDamBreak tutorial
bsh4263 is offline   Reply With Quote

Old   June 6, 2023, 03:55
Default
  #4
New Member
 
Join Date: Jan 2018
Posts: 18
Rep Power: 8
Zhi Cheng is on a distinguished road
Hi, Thanks for your reply!
I also tried to install with OpenFOAM v9, but faced with following issues:


FOAM/z54cheng-9/platforms/linux64GccDPInt32Opt/lib -lblockCoupledSolids4FoamTools -lRBFMeshMotionSolver -lfiniteVolume -ldynamicFvMesh -ldynamicMesh -lmeshTools -ltopoChangerFvMesh -o /home/z54cheng/OpenFOAM/z54cheng-9/platforms/linux64GccDPInt32Opt/lib/libsolids4FoamModels.so
/cvmfs/soft.computecanada.ca/gentoo/2020/usr/x86_64-pc-linux-gnu/binutils-bin/2.33.1/ld.bfd: cannot find -lRBFMeshMotionSolver
collect2: error: ld returned 1 exit status
make: *** [/cvmfs/soft.computecanada.ca/easybuild/software/2020/avx2/MPI/gcc9/openmpi4/openfoam/9/OpenFOAM-9/wmake/makefiles/general:181: /home/z54cheng/OpenFOAM/z54cheng-9/platforms/linux64GccDPInt32Opt/lib/libsolids4FoamModels.so] Error 1

The S4F_USE_GFORTRAN variable is not set: skipping abaqusUMATs
To use abaqusUMATs, install gfortran and set the S4F_USE_GFORTRAN
variable to 1


Do you have suggestions on this?

Quote:
Originally Posted by bsh4263 View Post
Yes it seems to be an issue with using OpenFOAM-v2012. When I switch to OpenFOAM v9 (foundation .org version), I am able to get the parallel solver working with the flexibleDamBreak tutorial
Zhi Cheng is offline   Reply With Quote

Old   June 6, 2023, 11:33
Default
  #5
New Member
 
Brandon Hayes
Join Date: Jun 2023
Posts: 3
Rep Power: 2
bsh4263 is on a distinguished road
I think that it might be that you need to install gfortran-7 for it to be compatible. However, what you are displaying looks like an issue with a part of the install; when the install finishes, can you still run the case files even with that error in building?
bsh4263 is offline   Reply With Quote

Old   June 6, 2023, 19:56
Default
  #6
New Member
 
Join Date: Jan 2018
Posts: 18
Rep Power: 8
Zhi Cheng is on a distinguished road
Thanks!
It is because I used the solids4foam-V1, v2 works well on Openfoam9!

Zhi

Quote:
Originally Posted by bsh4263 View Post
I think that it might be that you need to install gfortran-7 for it to be compatible. However, what you are displaying looks like an issue with a part of the install; when the install finishes, can you still run the case files even with that error in building?
Zhi Cheng 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
pimpleDYMFoam doesn't work in parallel decibelle OpenFOAM Running, Solving & CFD 1 July 11, 2017 03:44
simpleFoam in parallel issue plucas OpenFOAM Running, Solving & CFD 3 July 17, 2013 11:30
OpenFOAM 2.0.0. and 2.0.1 doesn't work in parallel mode rv82 OpenFOAM Running, Solving & CFD 3 October 3, 2011 10:47
Issue with running in parallel on multiple nodes daveatstyacht OpenFOAM 7 August 31, 2010 17:16
parallel issue: global face zone/patch ... matteoL OpenFOAM Running, Solving & CFD 2 June 16, 2010 06:22


All times are GMT -4. The time now is 11:28.