|
[Sponsors] |
How to prevent setFields to overwrite mapped values |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 24, 2018, 05:11 |
How to prevent setFields to overwrite mapped values
|
#1 |
Member
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 11 |
Hi all,
I have a case on which I mapped a field. Now I want to replace parts of that mapped field with other values such as zeros. I tried setFields and it worked, however it does not keep my mapped values. Perhaps one of you has any idea how one can keep the previously mapped values ??? Best H |
|
August 24, 2018, 06:00 |
|
#2 |
Member
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 11 |
sorry guys I foud the issue ...
one needs to comment out the defaultField Values... which apprears locical, AFTERWARDS !!! ... /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // /*defaultFieldValues ( volVectorFieldValue U (10 0 0) // volScalarFieldValue T 348.432 // volScalarFieldValue p 100000 );*/ regions ( boxToCell { box (0 0 0.15) (0.4 0.2 0.35); fieldValues ( volVectorFieldValue U (0.2 0 0) // volScalarFieldValue T 278.746 // volScalarFieldValue p 10000 ); } ); // ************************************************** *********************** // |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TimeVaryingMappedFixedValue | irishdave | OpenFOAM Running, Solving & CFD | 32 | June 16, 2021 06:55 |
Ensight - node values -cell values | leo | FLUENT | 1 | May 12, 2010 08:47 |
exact face values | RubenG | Main CFD Forum | 0 | June 22, 2009 11:09 |
strange node values @ solid/fluid interface - help | JB | FLUENT | 2 | November 1, 2008 12:04 |
node values or cell values? | aPpA | FLUENT | 0 | November 10, 2006 08:56 |