|
[Sponsors] |
OpenFOAM 1906 timeVaryingMappedFixedValue + parallel |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
|
Dear FOAMers,
I was wondering if timeVaryingMappedFixedValue + pointDisplacement + parallel does not work in OpenFOAM v1906 or I did something wrong with my case. I try to modify pitzDailyExptInlet case to test the moving boundary. I add the following files 1. 0/pointDisplacement, 2. constant/boundaryData/inlet/0/pointDisplacement. 3. constant/dynamicMeshDict where displacementLaplacian is used. The fvSolution file is also edited accordingly. Then run in parallel. mpirun -np 4 moveDynamicMesh -parallel The error shows points file does not exist. But it is there, and it runs without any error in serial. In addition, the original case without any modification runs well in parallel. /////// Message Excerpt=========== Create mesh for time = 0 Selecting dynamicFvMesh dynamicMotionSolverFvMesh Selecting motion solver: displacementLaplacian [1] [1] [1] --> FOAM FATAL IO ERROR: [1] file "../constant/boundaryData/inlet/points" does not exist [1] [1] file: ../constant/boundaryData/inlet/points at line 1. [1] [1] From function Foam::IFstream& Foam::IFstream: ![]() [1] in file db/IOstreams/Fstreams/IFstream.C at line 221. [1] FOAM parallel run exiting Someone can confirm this? Any hints will be appreciated! Michael |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 ![]() |
Hi,
- `points` file containing three-dimensional position data is required in order to map the corresponding boundary information onto the inlet patch. - please search for an example within tutorials where `points` file is used in association with `timeVar*` boundary condition. Hope this helps a bit.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
|
Quote:
Thank you for your reply. I am pretty sure 'point' file is there with correct formats. As the case is copied from the tutorial and it runs well in serial. Strangely, I did nothing but switch to OpenFOAM 6, it runs without any issue in parallel. I was just wondering if it is a bug of OpenFOAM v1906 or something else was wrong with my environment. |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 ![]() |
Hi,
I will see what I can do - I will test your case. Please do not hesitate to poke me if I don't get back to it (sometimes, I lose the track of the posts that I promised to provide an answer).
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Senior Member
|
Quote:
By the way, in timeVaryingMappedFixedValue, is it possible to repeat the cycle like timeVaryingUniformFixedValue by setting outOfBounds repeat? |
||
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 ![]() |
sorry, what cycle? (might be my IQ dropped to a single-digit
![]()
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
|
Sorry for the confusion. I want to run the simulation up to 10s but only provide the data up to 5s, because the boundary condition at inlet repeats during 6s~10s.
So I want to reuse the data in: constant/boundaryData/inlet/0 constant/boundaryData/inlet/1 constant/boundaryData/inlet/2 ... constant/boundaryData/inlet/5 In short, I do not want to provide all the data for the second cycle. Hopefully, it is clearer to state my problem. |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
Senior Member
|
Quote:
Just wondering if you have tested the case or any findings. Regards, Michael |
||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 ![]() |
I'm very sorry that I still couldn't touch it. Yet it is on my list.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
![]() |
![]() |
![]() |
![]() |
#12 | |
Senior Member
|
Quote:
Did you have a chance to run the test case? I encountered this problem again. After upgrading to OpenFOAM v2006, I applied timeVaryingMappedFixedValue type on my moving wall (pointMotionU). It runs well in serial but gives an error regarding matchPoint. I think it is quite the same problem. In pointMotionU Code:
wall { type timeVaryingMappedFixedValue; mapMethod nearest; setAverage off; offset ( 0 0 0 ); points "points"; } The output (only in parallel): Code:
[1] Cannot find point in pts1 matching point 284 coord:(0 0 0) in pts0 when using tolerance 1e+15 [0] Cannot find point in pts1 matching point 238 coord:(-0.00098 0 0) in pts0 when using tolerance 1e+15 [0] Searching started from:0 in pts1 [1] Searching started from:0 in pts1 [1] Cannot find point in pts1 matching point 286 coord:(0 1.313131313e-05 0) in pts0 when using tolerance 1e+15 .... Code:
[0] --> FOAM FATAL ERROR: [0] Did not find a corresponding sourcePoint for every face centre [0] [0] From void Foam::pointToPointPlanarInterpolation::calcWeights(const pointField&, const pointField&) [0] in file triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C at line 159. [0] FOAM parallel run exiting [0] [1] [1] [1] --> FOAM FATAL ERROR: [1] Did not find a corresponding sourcePoint for every face centre [1] [1] From void Foam::pointToPointPlanarInterpolation::calcWeights(const pointField&, const pointField&) [1] in file triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C at line 159. [1] FOAM parallel run exiting [1] [cfd-me:24292] 1 more process has sent help message help-mpi-api.txt / mpi-abort [cfd-me:24292] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages I'm sure all the data are correct which is confirmed by running in serial. I tested the same case in OpenFOAM-7; there is no problem. But I need to use overset in ESI version. Thank you! Michael |
||
![]() |
![]() |
![]() |
![]() |
#13 |
Senior Member
|
The problem has been (kind of) solved by modifying some codes in the source file:
Code:
/home/michael/OpenFOAM/OpenFOAM-v2006/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.C Code:
const fileName samplePointsFile ( //time.caseConstant() time.constant() /"boundaryData" /this->patch().name() /"points" ); Code:
// IOobject io // ( // samplePointsFile, // absolute path // time, // IOobject::MUST_READ, // IOobject::NO_WRITE, // false, // no need to register // true // is global object (currently not used) // ); // Read data // const rawIOField<point> samplePoints(io, false); pointField samplePoints((IFstream(samplePointsFile)())); Code:
//#include "rawIOField.H" // deleted //# Copied from OpenFOAM-7 #include "AverageField.H" #include "IFstream.H" Code:
// replaced // IOobject io // ( // valsFile, // absolute path // time, // IOobject::MUST_READ, // IOobject::NO_WRITE, // false, // no need to register // true // is global object (currently not used) // ); // const rawIOField<Type> vals(io, setAverage_); // if (setAverage_) // { // startAverage_ = vals.average(); // } //////////////////////////////////// // with Field<Type> vals; if (setAverage_) { AverageField<Type> avals((IFstream(valsFile)())); vals = avals; startAverage_ = avals.average(); } else { IFstream(valsFile)() >> vals; } //////////////////////////////////// End of Added "Number of values (0) differs from the number of points ( ) in file ... when the data file has the format (uniform): Code:
720{(0 0 0)}. 4. wmake, then it runs. Hope someone can confirm this solution or propose a better one. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 11:58 |
Openfoam parallel calculation performance study - Half performance on mpirun | Jurado | OpenFOAM Running, Solving & CFD | 22 | March 24, 2018 20:40 |
[Commercial meshers] OpenFoam Mesh to Fluent Mesh in parallel case | DominicTNC | OpenFOAM Meshing & Mesh Conversion | 3 | November 22, 2017 09:19 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 18:45 |
OpenFoam parallel on 2 computers : Cannot find file "points" | Blue8655 | OpenFOAM Running, Solving & CFD | 1 | June 3, 2015 21:59 |