Skip to content

duplicated names #32

@mozdzierz

Description

@mozdzierz

Hello,

I have problem running uFVM, because some names are duplicated. My system is Fedora 42, and I'm using Matlab R2025a.

Steps:

  1. Add uFVM to path (Home -> Set Path -> Add Folder with Subfolders)
  2. Run elbow tutorial case.
  3. The following error appears:

`Reading Turbulence Properties ...
Unrecognized function or variable 'setupTerm'.

Error in [cfdAddTerm](matlab:matlab.lang.internal.introspective.errorDocCallback('cfdAddTerm', '/home/marcin/Documents/uFVM/src/model/Equation/cfdAddTerm.m', 13)) ([line 13](matlab: opentoline('/home/marcin/Documents/uFVM/src/model/Equation/cfdAddTerm.m',13,0)))
theTerm = setupTerm(theTermName);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in [cfdDefineMomentumEquation](matlab:matlab.lang.internal.introspective.errorDocCallback('cfdDefineMomentumEquation', '/home/marcin/Documents/uFVM/src/model/Momentum/cfdDefineMomentumEquation.m', 27)) ([line 27](matlab: opentoline('/home/marcin/Documents/uFVM/src/model/Momentum/cfdDefineMomentumEquation.m',27,0)))
cfdAddTerm('U', 'FalseTransient');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in [cfdRun](matlab:matlab.lang.internal.introspective.errorDocCallback('cfdRun', '/home/marcin/Documents/uFVM_test/elbow/cfdRun.m', 17)) ([line 17](matlab: opentoline('/home/marcin/Documents/uFVM_test/elbow/cfdRun.m',17,0)))
cfdDefineMomentumEquation;
^^^^^^^^^^^^^^^^^^^^^^^^^^`

I've analyzed the error and file structure, and it appears that:

  • cfdAddTerm.m runs from src/model/Equation instead of src/model
  • cfdGetNeighboursSubArrayForInteriorFaces.m runs from /src/mesh instead of src/fields

I've already fixed the error by renaming m files in src/model/Equation and src/mesh, but I'm not sure if this doesn't break anything? And this is rather cumbersome, to be honest.

Regards,
Marcin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions