|
[Sponsors] |
timeVaryingMappedFixedValue cannot find field values in the case directory |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 15, 2024, 12:24 |
timeVaryingMappedFixedValue cannot find field values in the case directory
|
#1 |
New Member
Prom
Join Date: Aug 2023
Posts: 8
Rep Power: 3 |
Hello,
I am using the timeVaryingMappedFixedValue (tVMFV) boundary condition to map heat fluxes onto a surface of an object. From there I want to observe the temperature evolution in that object. I define the points and corresponding values of heat flux for each timestep in constant/boundaryData/<patchname>/points and constant/boundaryData/<patchname>/<time>/HF respectively. Note that I define the volScalarField 'HF' in the .C file of a custom function similar to laplacianFoam. Beyond the definition Code:
Info<< "Reading Heat Flux HF from fcn file\n" << endl; volScalarField HF ( IOobject ( "HF", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Whenever I run my custom function I get the following error: Code:
--> FOAM FATAL ERROR: (openfoam-2406) cannot find file "/Users/promisea/OpenFOAM/ibukunOluwa/testCases/blockTest/2D_Trials/nstx132460/test2D-NSTX-tdep_timeVaryBC_10nodes/0.000159/HF" From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(regIOobject &, const fileName &, const word &, const bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 629. FOAM exiting Oddly enough, when I adjust the function so that instead of solving for temperature in the heat equation, it solves for heat flux Code:
while (simple.correctNonOrthogonal()) { fvScalarMatrix TEqn ( // fvm::ddt(T) - fvm::laplacian(Diff, T) // == // fvOptions(T) // fvm::ddt(T) - Diff*fvm::laplacian(T) // == fvOptions(T) fvm::ddt(HF) - fvm::laplacian(Diff, HF) == fvOptions(HF) ); fvOptions.constrain(TEqn); TEqn.solve(); fvOptions.correct(T); } #include "write.H" runTime.printExecutionTime(Info); Thank you! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 04:52 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 17:18 |
CFX-Pre problem, pls help!!! | cth_yao | CFX | 0 | February 17, 2012 01:52 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |