|
[Sponsors] |
[solids4Foam] Problem running elastic beam in crossflow tutorial |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 15, 2021, 13:11 |
Problem running elastic beam in crossflow tutorial
|
#1 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
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 |
|
November 15, 2021, 22:25 |
|
#2 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
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:
|
||
November 16, 2021, 09:46 |
|
#3 | |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
Quote:
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 |
||
November 17, 2021, 14:37 |
|
#4 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
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:
|
||
November 18, 2021, 05:35 |
|
#5 | |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
Quote:
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. |
||
November 20, 2021, 00:25 |
|
#6 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Quote:
All command must run in case folder not subfolder, the case folder is where the "Allrun" file located. |
||
November 23, 2021, 13:03 |
|
#7 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
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 |
|
November 24, 2021, 07:33 |
|
#8 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
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:
|
||
November 24, 2021, 08:49 |
|
#9 | |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
Quote:
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 |
||
November 25, 2021, 07:06 |
|
#10 |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
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. |
|
November 25, 2021, 07:46 |
|
#11 | |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
Quote:
Ah ok thank you. |
||
Tags |
fsi simulation, solids4foam |
|
|
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 |