|
[Sponsors] |
December 9, 2021, 09:36 |
Creating new field by using createFields.H
|
#1 |
New Member
Join Date: Jun 2021
Posts: 5
Rep Power: 5 |
volScalarField Up
( IOobject ( "Up", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mag(U)*p ); I am adding this line in createFields.H in myicoFoam solver which is nothing but the same solver icoFoam created in USER library. Then I am running the cavity case. I am getting this file Up.C /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.5"; object Up; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 3 -3 0 0 0 0]; internalField uniform 0; boundaryField { movingWall { type calculated; value uniform 0; } fixedWalls { type calculated; value uniform 0; } frontAndBack { type empty; } } // ************************************************** *********************** // at every time folder except 0/ as there is no <nonuniform> scalar written in it, I am unable to get it in paraview. What is the possible solution to this problem? |
|
Tags |
c++, openfoam, programming |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
creating an internal field? | maybee | OpenFOAM Programming & Development | 2 | February 4, 2021 18:15 |
creating a field that is accessible by all processors | szamani | OpenFOAM Programming & Development | 2 | July 27, 2020 03:28 |
Cht tutorial in 15 | braennstroem | OpenFOAM Running, Solving & CFD | 197 | June 10, 2015 04:02 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
Help creating a field function to create a sine pressure wave | Pleb | STAR-CCM+ | 2 | February 17, 2011 13:16 |