CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Take fields from another folder

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 26, 2021, 16:23
Default Take fields from another folder
  #1
New Member
 
Join Date: Jul 2021
Posts: 4
Rep Power: 4
Mnuk is on a distinguished road
Hello to everyone!

I created a new solver and many volScalarFields are involved. In order to be clearer in the case to be simulated, I store them in different folders in 0 so:

0/Amplitudes
0/Fluxes
0/Properties
0/Weights

No problems, just change in createFields.H where I take variables like:

volScalarField fi1
(
IOobject
(
"Fluxes/fi1",
runTime.timeName(),
mesh_fi,
IOobject::MUST_READ,
IOobject::NO_WRITE
),
mesh_fi
);

However when I run the solver it gives me a problem: the fvSchemes is not able to find the variables!
It should do:

fvm::laplacian(DD1,fi1)

while in fvSchemes there is:

laplacian(DD1,fi1) Gauss linear corrected;

but it gives me this error:

Entry 'laplacian(Properties/DD1,Fluxes/fi1)' not found in dictionary "/mnt/c/users/hp/desktop/tesi/calcoli/Space_energy/RI1/system/fvSchemes.laplacianSchemes"

So I ask you: how to solve this? Is it possible to do what I want, so store the variables in subfolders in 0? Thanks to everyone
Mnuk is offline   Reply With Quote

 

Tags
folder, fvschemes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postprocess: sampleDict works but creates no output folder shock77 OpenFOAM Post-Processing 14 November 15, 2021 08:27
Сhoice fields using mapFields Reptider OpenFOAM Running, Solving & CFD 0 July 13, 2021 11:44
write fields in openfoam database in boundary patch medmast OpenFOAM Programming & Development 7 February 14, 2017 15:53
Is there a way to write only the probe locations instead the whole fields? jeanbvb OpenFOAM Programming & Development 6 October 5, 2016 10:57
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57


All times are GMT -4. The time now is 14:51.