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] Problem running elastic beam in crossflow tutorial

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Hgholami

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2021, 13:11
Default Problem running elastic beam in crossflow tutorial
  #1
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Hi,


I am trying to run my first FSI tutorial on solids4foam and I have encountered an error. When trying to run the tutorial 'elastic beam in cross flow' in parallel, I get to the stage where I must decompose both the solid and fluid domains and get an error for both the solid and fluid decomposition.


upon entering the command: decomposePar -region solid


I get the error:


Decomposing mesh solid

Create time

Time = 0
Create mesh for region solid


--> FOAM FATAL ERROR:
Cannot find file "points" in directory "constant/solid/polyMesh"

From function Time::findInstance(const fileName&, const word&, const IOobject::readOption)
in file db/Time/findInstance.C at line 148.

FOAM exiting




Please could somebody advise me how to rectify this?
Thanks
MFWilliams is offline   Reply With Quote

Old   November 15, 2021, 22:25
Default
  #2
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Hi
When you found this error, it means the command can't find points in sub-folder constant/solid/polyMesh.
you may are in incorrect folder and run the command or you had problem in blockMesh.
first check this sube-folder and found points file, then check you folder when run the decomposePar -region solid command.
Quote:
Originally Posted by MFWilliams View Post
Hi,


I am trying to run my first FSI tutorial on solids4foam and I have encountered an error. When trying to run the tutorial 'elastic beam in cross flow' in parallel, I get to the stage where I must decompose both the solid and fluid domains and get an error for both the solid and fluid decomposition.


upon entering the command: decomposePar -region solid


I get the error:


Decomposing mesh solid

Create time

Time = 0
Create mesh for region solid


--> FOAM FATAL ERROR:
Cannot find file "points" in directory "constant/solid/polyMesh"

From function Time::findInstance(const fileName&, const word&, const IOobject::readOption)
in file db/Time/findInstance.C at line 148.

FOAM exiting




Please could somebody advise me how to rectify this?
Thanks
Hgholami is offline   Reply With Quote

Old   November 16, 2021, 09:46
Default
  #3
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Quote:
Originally Posted by Hgholami View Post
Hi
When you found this error, it means the command can't find points in sub-folder constant/solid/polyMesh.
you may are in incorrect folder and run the command or you had problem in blockMesh.
first check this sube-folder and found points file, then check you folder when run the decomposePar -region solid command.



I checked the subfolder and could not see the points file, i have not edited it though and I downloaded solids4foam straight from the official bitbucket and it has been working fine with blockmesh for the other tutorials like the solid tutorials.


I tried to run 'decomposePar -region fluid' again but whilst in the system folder instead of being in the whole case directory and recieved this error instead:





Decomposing mesh fluid

Create time



--> FOAM FATAL IO ERROR:
cannot open file

file: /mnt/c/Users/merli/simulations/s4f_crossflow_elastic_test/system/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 60.

FOAM exiting




Any ideas at what is wrong?
Thanks for the advice
MFWilliams is offline   Reply With Quote

Old   November 17, 2021, 14:37
Default
  #4
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Hi, for decomposePar, you run this command in system folder.
../system/system/controlDict
you should ensure, where run command. for run command use /mnt/c/Users/merli/simulations/s4f_crossflow_elastic_test/ folder.

Quote:
Originally Posted by MFWilliams View Post
I checked the subfolder and could not see the points file, i have not edited it though and I downloaded solids4foam straight from the official bitbucket and it has been working fine with blockmesh for the other tutorials like the solid tutorials.


I tried to run 'decomposePar -region fluid' again but whilst in the system folder instead of being in the whole case directory and recieved this error instead:





Decomposing mesh fluid

Create time



--> FOAM FATAL IO ERROR:
cannot open file

file: /mnt/c/Users/merli/simulations/s4f_crossflow_elastic_test/system/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 60.

FOAM exiting




Any ideas at what is wrong?
Thanks for the advice
Hgholami is offline   Reply With Quote

Old   November 18, 2021, 05:35
Default
  #5
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Quote:
Originally Posted by Hgholami View Post
Hi, for decomposePar, you run this command in system folder.
../system/system/controlDict
you should ensure, where run command. for run command use /mnt/c/Users/merli/simulations/s4f_crossflow_elastic_test/ folder.

Sorry I am not completely sure I understand what you mean. I am in the 'system' subfolder which is in the s4f_crossflow_elastic_test case folder when I input the 'decomposePar -region fluid' command and I receive the error below.


--> FOAM FATAL IO ERROR:
cannot open file

file: /mnt/c/Users/merli/simulations/s4f_crossflow_elastic_test/system/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 60.

FOAM exiting




I am unsure as to why in the error it says 'system' twice: '.../s4f_crossflow_elastic_test/system/system/controlDict'


I have not edited the decomposeParDict files and they are the ones that are already in the elastic beam in crossflow case when solids4foam is installed.
MFWilliams is offline   Reply With Quote

Old   November 20, 2021, 00:25
Default
  #6
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Quote:
I am in the 'system' subfolder which is in the s4f_crossflow_elastic_test case folder when I
executing command in system folder is wrong, back to master folder "s4f_crossflow_elastic_test" folder, then run the command.
All command must run in case folder not subfolder, the case folder is where the "Allrun" file located.
Hgholami is offline   Reply With Quote

Old   November 23, 2021, 13:03
Default
  #7
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Ah ok thank you.


I have now run the 'decomposePar -region fluid' command again whilst in the whole case directory and not in the system subdirectory and I recieved the following error:


--> FOAM FATAL ERROR:
Cannot find file "points" in directory "constant/fluid/polyMesh"

From function Time::findInstance(const fileName&, const word&, const IOobject::readOption)
in file db/Time/findInstance.C at line 148.

FOAM exiting


I had a look in polyMesh and the only thing in the polyMesh directory was blockMeshDict and in blockMeshDict I could not see the file 'points'. Should it be there?
I also tried running another case 'micro beam in crossflow' as well but that generated the same error message.



Thanks in advance
MFWilliams is offline   Reply With Quote

Old   November 24, 2021, 07:33
Default
  #8
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
first, run "blockMesh -region fluid" in the whole case directory
then send the report. If the command successes, you can see the points file in "constant/fluid/polyMesh" and can run decomposePar -region fluid.
If the command failed, you should send the report to be consider.

Quote:
Originally Posted by MFWilliams View Post
Ah ok thank you.


I have now run the 'decomposePar -region fluid' command again whilst in the whole case directory and not in the system subdirectory and I recieved the following error:


--> FOAM FATAL ERROR:
Cannot find file "points" in directory "constant/fluid/polyMesh"

From function Time::findInstance(const fileName&, const word&, const IOobject::readOption)
in file db/Time/findInstance.C at line 148.

FOAM exiting


I had a look in polyMesh and the only thing in the polyMesh directory was blockMeshDict and in blockMeshDict I could not see the file 'points'. Should it be there?
I also tried running another case 'micro beam in crossflow' as well but that generated the same error message.



Thanks in advance
MFWilliams likes this.
Hgholami is offline   Reply With Quote

Old   November 24, 2021, 08:49
Default
  #9
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Quote:
Originally Posted by Hgholami View Post
first, run "blockMesh -region fluid" in the whole case directory
then send the report. If the command successes, you can see the points file in "constant/fluid/polyMesh" and can run decomposePar -region fluid.
If the command failed, you should send the report to be consider.



Ahhh thank you so much! That has fixed it, I did not realise that you have to also run 'blockMesh -region fluid' as it does not say that in the tutorial document. It is now running successfully.


One final question. Is the number of subdomains that you decompose it into dependant on the number of processors your device has?


Many thanks on being patient with me and helping me solve the problem.


Merlin
MFWilliams is offline   Reply With Quote

Old   November 25, 2021, 07:06
Default
  #10
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
You're welcome.
For the number of subdomains, I should say it's not straight relation to number of processors. you can choice each number of subdomains, but it can't help you.
you should choice number of subdomains base on available thread of processors.
because the available thread of processors accelerate the simulation, not number of subdomains. so if you choice number of subdomains greater than available thread of processors, some subdomains should waits to processors be available.
Hgholami is offline   Reply With Quote

Old   November 25, 2021, 07:46
Default
  #11
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Quote:
Originally Posted by Hgholami View Post
You're welcome.
For the number of subdomains, I should say it's not straight relation to number of processors. you can choice each subdomains, but it can't help you.
you should choice number of subdomains base on available thread of processors.
because the available thread of processors accelerate the simulation, not number of subdomains. so if you choice number of subdomains greater than available thread of processors, the each subdomains should waits to processors be available.

Ah ok thank you.
MFWilliams is offline   Reply With Quote

Reply

Tags
fsi simulation, solids4foam


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
Error problem while running sadia d lts tutorial kane OpenFOAM Running, Solving & CFD 2 May 26, 2018 04:38
CFD Fluent tutorial - Shell and tube heat exchanger - PROBLEM tom96 FLUENT 1 May 21, 2018 01:24
joint beam to a solid problem javierao ANSYS 0 March 28, 2018 20:12
[waves2Foam] Problem in running Allrun and also setWaveFields ankitchy OpenFOAM Community Contributions 2 March 9, 2015 09:10
comsol cantilever beam problem bhu47 COMSOL 0 June 30, 2008 15:59


All times are GMT -4. The time now is 14:09.