CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

[adjointOptimisationFoam] dynamicMeshDict Fatal Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2021, 05:29
Post [adjointOptimisationFoam] dynamicMeshDict Fatal Error
  #1
Member
 
mCiFlDk's Avatar
 
mCiFlDk
Join Date: Feb 2020
Posts: 60
Rep Power: 6
mCiFlDk is on a distinguished road
Dear foamers,


As I'm aware that this module is not widely used, I'll explain the issue the best I can but straight to the point.

There are 2 operation modes provided by this module: singleRun (to calculate sensitivity maps, similar to U or p surface maps) and steadyOptimisation (to modify the mesh based on those maps). The differences between their setup are mainly 2:
  • The constant/dynamicMeshDict/ is not needed for the singleRun
  • The system/optimisationDict/ has to omit some lines if singleRun since it's simpler, without further issues

In my case, any singleRun sim works perfectly, but when I try to imitate the tutorial provided,
HTML Code:
$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/shapeOptimisation/motorBike
the following error shows up when the first mesh morphing will be carried out (just after the 2nd cycle starts):
Code:
( ... ) # First cycle worked

* * * * * * * * * * * * * * * * *
Optimisation cycle 2
* * * * * * * * * * * * * * * * *

Adjoint solver adjSolver1
lift : 0.395253
Weighted objective : 0.395253

Using steepest descent for the first iteration
maxAllowedDisplacement/maxDisplacement of boundary	0.05/2.267379
Setting eta value to 0.0220519

[0] [2]
[2]
[2] --> FOAM FATAL ERROR: (openfoam-2012[3]
[3]
[3] --> FOAM FATAL ERROR: (openfoam-2012)
[3] Attempting to replace controlPointsMovement with a set of different size
[1]
[1]
[1] --> FOAM FATAL ERROR: (openfoam-2012)
[1] Attempting to replace controlPointsMovement with a set of different size
[1]
[1]
[0]
[0] --> FOAM FATAL ERROR: (openfoam-2012)
[0] Attempting to replace controlPointsMovement with a set of different size
[0]
[0]     From void Foam::volumetricBSplinesMotionSolver::setControlPointsMovement(const vectorField&)
[0]     in file )
[2] Attempting to replace controlPointsMovement with a set of different size
[2]
[2]     From void Foam::volumetricBSplinesMotionSolver::setControlPointsMovement(const vectorField&)
[2]     in file dynamicMesh/motionSolver/volumetricBSplinesMotionSolver/volumetricBSplinesMotionSolver.C at line 136.
[2]
FOAM parallel run exiting
[2]

 ( ... ) # Error keeps on going saying the same
I truly believe the error, after several trials, is caused by the setup of dynamicMeshDict. What confuses me is that it's just made up by a single control box, which is NOT in contact with any boundary (just in case you thought the issue was that).

I hope any of you have faced this similar issue, since I'm a bit desperate with it. I attach the optimisationDict and the dynamicMeshDict in case you find them useful.


Thanks in advance
Attached Files
File Type: zip dicts.zip (1.9 KB, 13 views)
mCiFlDk is offline   Reply With Quote

Old   July 5, 2021, 04:23
Default
  #2
Member
 
mCiFlDk's Avatar
 
mCiFlDk
Join Date: Feb 2020
Posts: 60
Rep Power: 6
mCiFlDk is on a distinguished road
SOLVED:

Quote:
Originally Posted by mCiFlDk View Post
Dear foamers,

( ... )
Hi,

For future adjointOptimisationFoam users I want to explain how I solved the issue.

If you download the two dicts I uploaded, you'll see that under "sensitivities" section in the optimisationDict, I was using "surfacePoints" to calculate the sensitivities. At the same time, I was using the "volumetricBSplines" option under dynamicMeshDict to morph the mesh.

It seems that, when you want to morph the mesh, you have to keep coherence between the options since there are incompatibilities between them. To solve it, I just changed the option under "sensitivities" section in the optimisationDict from "surfacePoints" to "volumetricBSplines", and that solved the issue.

Hope it helps!
mCiFlDk is offline   Reply With Quote

Old   August 15, 2022, 12:56
Default adjointOptimisationFoam problem
  #3
New Member
 
rohi rohii
Join Date: Aug 2022
Posts: 1
Rep Power: 0
rohi1989 is on a distinguished road
Thank you for explanation
rohi1989 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
[OpenFOAM] ParaView command in Foam-extend-4.1 mitu_94 ParaView 0 March 4, 2021 14:46
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 21:30
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31


All times are GMT -4. The time now is 12:31.