Page 2 of 2

Re: Mapping boundary conditions

Posted: Fri May 13, 2016 8:25 am
by fabioretti
Hi Yvan,

Just tried to compile spline.c in SRC, with the include line commented out.
Now the compilation at least starts, but then fails.
I get several warnings, followed by these messages:

splines.o: In function `cs_cub_interpolate':
splines.c:(.text+0x17ff): undefined reference to `min'
splines.c:(.text+0x189f): undefined reference to `min'
splines.c:(.text+0x18ec): undefined reference to `min'
splines.c:(.text+0x1939): undefined reference to `min'
splines.c:(.text+0x1986): undefined reference to `min'
splines.o:splines.c:(.text+0x19d3): more undefined references to `min' follow
collect2: error: ld returned 1 exit status

It was a very quick test, with very little effort to understand what's going on. But I don't expect to be able to go much farther with my limited coding skills. Anyway I'll try, and I will also be waiting for possible updates from you.

Many thanks. Regards,
fabio

Re: Mapping boundary conditions

Posted: Sat May 14, 2016 3:36 pm
by Yvan Fournier
Hello,

You probably removed too many lines.

I regenerated the missing splines.h file, so I attach the whole package again (I prefer to attach the whole package so others using this thread for reference in the future won't have to search over too many threads; the other files have not changed).

Regards,

Yvan

Re: Mapping boundary conditions

Posted: Tue May 31, 2016 2:08 pm
by fabioretti
Hi,

The files you provided worked perfectly. Thanks a lot for your help.

Best
Fabio

Re: Mapping boundary conditions

Posted: Mon Oct 09, 2023 5:51 am
by finzeo
Hello,

Before posting a similar query, I found this thread that fits quite well with what I want to do: having run a case with periodic conditions on an empty wind tunnel, I need to export the data obtained there in any rectangular cross section and then import them as BCs in the entry of a second case with a body inside the wind tunnel. In these years was a more straightforward way developed to carry out this?

Re: Mapping boundary conditions

Posted: Mon Oct 09, 2023 3:25 pm
by Yvan Fournier
Hello,

If you build code_saturne with the medcoupling library support, you could export the profile on the desired section in MED Format (either using PARAVIS, e.g. ParaView with the MED loader plugin, available in the salome platform), and then start from the following example https://www.code-saturne.org/documentat ... er_2d.html (code at https://github.com/code-saturne/code_sa ... apper_2d.c).

Best regards,

Yvan

Re: Mapping boundary conditions

Posted: Tue Oct 10, 2023 12:47 pm
by finzeo
Thank you Yvan,

I'm going to check it out and see how it goes.