|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Jun 2019
Posts: 41
Rep Power: 7 ![]() |
Hello everybody.
I would like to print out some scalarFields defined in boundary conditions files in paraview. I use OF8. I'm coding my own boundary condition for a volScalarField called pa. In the void Foam::myOwnBC::updateCoeffs() member function, I've defined some intermediate scalarField and vectorField, for example : Code:
scalarField Un = phip / patch().magSf(); Code:
operate==myCustomField1 + Un + myCustomField2 + ... ; My first attempt was to create a volScalarField in CreateFields.H : Code:
volScalarField testField ( IOobject ( "testField", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), mesh, dimensionedScalar("test", dimless, 0.0) ); Code:
const fvPatchField<scalar> &testFieldp = patch().lookupPatchField<volScalarField, scalar>("testField"); Code:
testFieldp = Un ; Code:
error: passing ‘const Foam::fvPatchField<double>’ as ‘this’ argument discards qualifiers [-fpermissive] testFieldp = Un ; Last edited by Voulet; July 21, 2021 at 08:59. |
|
![]() |
![]() |
![]() |
Tags |
boundaries definition |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 03:52 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 03:30 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 11:44 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |