Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Software . 2025
Data sources: ZENODO
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Software . 2025
Data sources: ZENODO
ZENODO
Software . 2025
Data sources: Datacite
ZENODO
Software . 2025
Data sources: Datacite
ZENODO
Software . 2025
Data sources: Datacite
versions View all 3 versions
addClaim

MATLAB-based OpenFOAM mesh and data dictionary generator

Authors: Pardo-Álvarez, Álvaro;

MATLAB-based OpenFOAM mesh and data dictionary generator

Abstract

Code description This repository contains a set of MATLAB scripts designed to generate the blockMeshDict file required for the OpenFOAM mesh generation utility blockMesh, along with additional mesh-related dictionaries (e.g., topoSetDict, refineMeshDict and createPatchDict) and input data files (e.g., setFieldsDict) associated with the resulting 3D structured mesh. The developed MATLAB scripts are organized in the following directories: + mesh_and_data_dicts: mesh_and_data_dicts.m: main script for the generation of geometric-based OpenFOAM dictionaries. _externalFunctions: contains standard MATLAB functions. _myFunctions: includes newly implemented functions designed to be used together with mesh_and_data_dicts.m. To run the code, the user must define: an input directory for all the data files required to generate the mesh and input data OpenFOAM dictionaries (default: input_files). an output directory for the MATLAB-generated OpenFOAM dictionaries (default: output_files). + inletOutlet_yc_and_yn: Froude_no_yc.m: supplementary script of mesh_and_data_dicts.m that determines the critical flow depth (yc, m) of a user-specified channel cross-section based on the Froude number (Fr). Additionally, it calculates various geometric variables (e.g., flow area (A, m2), wetted perimeter (P, m)) and flow parameters (e.g., total pressure (p0, Pa), velocity (U, m/s)) using yc. Manning_eqn_yn.m: supplementary script of mesh_and_data_dicts.m that computes the normal flow depth (yn, m) of a user-specified channel cross-section using Manning's equation. Similarly to Froude_no_yc.m, it also calculates various geometric variables and flow parameters using yn. Analogously to mesh_and_data_dicts, an output directory must be specified for the resulting p0 and/or U profiles, if exported (default: output_profiles). This approach streamlines the OpenFOAM case preparation, allowing for quicker and more efficient mesh configurations, customizations and initial condition setups. Further description of the different actions enabled by the newly implemented scripts and their related output files is provided in the OpenFOAM_dict_generator.pdf file.

Related Organizations
Keywords

MATLAB, Numerical Modelling, Mesh generation, OpenFOAM

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average
Funded by