|
[Sponsors] |
August 19, 2017, 12:26 |
Modify pointDisplacement within a solver
|
#1 | ||
New Member
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 9 |
Hi,
I'm working on a modified version of pimpleDyMFoam, in which i can access the pointDisplacement field and assign value to a boundary patch according to data calculated inside the solver. (I'm using OF 4.1) after declaring the IOobject and the pointPatchVectorField referred to the patch: Quote:
Quote:
error: passing ‘const pointPatchVectorField {aka const Foam:ointPatchField<Foam::Vector<double> >}’ as ‘this’ argument discards qualifiers [-fpermissive] Does anybody know why? Thanks |
|||
August 22, 2017, 07:18 |
|
#2 | |
New Member
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 9 |
the solution is to use boundaryFieldRef instead of boundaryField to write into the boundary patch:
Quote:
Last edited by dariodario32; August 23, 2017 at 06:15. |
||
September 6, 2017, 13:10 |
|
#3 |
New Member
Xiangfeng Lin
Join Date: Sep 2017
Posts: 2
Rep Power: 0 |
||
September 13, 2017, 04:30 |
|
#4 |
New Member
ANKUR GARG
Join Date: Mar 2017
Posts: 23
Rep Power: 9 |
Can Anyone help me, Where I am going wrong to write the below equation, where qem is the volScalarField and dfm is the class object:
error: passing ‘const volScalarField {aka const Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>}’ as ‘this’ argument discards qualifiers [-fpermissive] scalarField& qem = dfm.qem().boundaryFieldRef()[patchi]; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
CFX solver workspace properties: modify default values | zboud | CFX | 2 | March 8, 2010 09:10 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |
To modify the interFoam solver for cavitating | zjucfd | OpenFOAM Running, Solving & CFD | 5 | August 26, 2007 09:03 |