|
[Sponsors] |
Including previous binary values in new BC set up |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 11, 2019, 12:49 |
Including previous binary values in new BC set up
|
#1 |
New Member
Join Date: Sep 2015
Posts: 13
Rep Power: 10 |
Hi all,
I don't know C++, but I wanted to include binary value from a previous run in a new case setup with different boundary conditions. I thought I could save the relevant data as seperate files and use '#include' to include it 1:1 in my BC files. For example: I extract the internal pressure field and save it to a file 'initial/internal_p' so that it looks like: Code:
internalField nonuniform List<scalar>· 5309304 ( ***internal field as binary data here*** ); Code:
#include "/initial/internal_p" If I want to run the case, I get the following error: Code:
--> FOAM FATAL IO ERROR: Wrong token type - expected scalar value, found on line 10: word '濵' file: <zip>/initial/internal_p at line 10. From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&) in file lnInclude/Scalar.C at line 149. Thank you! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Set values of a volVectorField to zero | GustavGans | OpenFOAM Programming & Development | 12 | April 9, 2019 00:12 |
Is it possible to set up radiative transfer equation(RTE) including scattering?? | kane | OpenFOAM Programming & Development | 0 | March 19, 2018 03:55 |
How can I set the right Reference Values for airfoil simulation | otubaba | FLUENT | 2 | June 13, 2015 17:34 |
Cluster ID's not contiguous in compute-nodes domain. ??? | Shogan | FLUENT | 1 | May 28, 2014 15:03 |
Level set values for a cartesian grid | werder85 | Main CFD Forum | 0 | March 10, 2011 20:44 |